From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1cf653444208df72 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-13 00:07:26 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!intgwpad.nntp.telstra.net!news-server.bigpond.net.au!not-for-mail From: Dale Stanbrough Newsgroups: comp.lang.ada Subject: Re: ada vs. cpp Organization: RMIT References: <9q7na102nqn@drn.newsguy.com> User-Agent: MT-NewsWatcher/3.1 (PPC) Message-ID: Date: Sat, 13 Oct 2001 07:07:25 GMT NNTP-Posting-Host: 144.132.82.11 X-Complaints-To: news@bigpond.net.au X-Trace: news-server.bigpond.net.au 1002956845 144.132.82.11 (Sat, 13 Oct 2001 17:07:25 EST) NNTP-Posting-Date: Sat, 13 Oct 2001 17:07:25 EST Xref: archiver1.google.com comp.lang.ada:14449 Date: 2001-10-13T07:07:25+00:00 List-Id: Vector..@ wrote: > What is wrong with pthreads? No proper monitor model (and not just a wimpy java monitor, but one that actually -monitors- conditions). No rendezvous mechanism. > Yes, it is not part of the language, but it is a standard (POSIX), and > available in all platforms (except may on windows, I am not sure, but > who cares about widnows anyway). With varying degrees of success. Apple's threads are apparently a bit ordinary. I think a very large % of the market cares about windows. If you want transportable threaded programs, you can use tools like Doug Schmidt's C++ ACE environment which includes thread based bindings, or you could use a language that supports threading. > So, simply do > > #include > > and you are all set. Not quite. You forget #define _REENTRANT. And don't forget the compile options. Dale