Re: Threads - When?
Le Chaud Lapin wrote:
Joe Seigh wrote:
Unfortunately, they seem to be concentrating on low level design
right now, specifically the memory model. The problem is they
don't know how to do high level specification so they're creating
a low level specification and will do the higher level constructs
in the form of a meta implementation.
What do you mean here? Are they concocting new low-level C++
primitives that presume the existence of hardware instructions to
support those new primitives?
No. They're defining what it means to access memory from more
than one thread at a time. Until this is done, any
multithreaded program in C++ works either by chance (which is
probably the case of most multithreaded programs), or because it
is based on additional guarantees given by the
implementation---there are "intuitive" mappings for much of the
Posix C model to C++, for example, even if they do leave a
number of C++ issues unanswered. (Note that on the platform I
most frequently program on, Sun CC and g++ use incompatible
mappings, which means that a program which is correct with
regards to threading for Sun CC may not be with g++, and vice
versa.)
--
James Kanze (Gabi Software) email: james.kanze@gmail.com
Conseils en informatique orient?e objet/
Beratung in objektorientierter Datenverarbeitung
9 place S?mard, 78210 St.-Cyr-l'?cole, France, +33 (0)1 30 23 00 34
--
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]