Subj : Re: Adding thread support for C... To : comp.programming.threads From : Markus Elfring Date : Sat Jul 23 2005 06:50 pm > The code that you are trying to write implements concurrency primitives, > which you should not expect to have a portable implementation in C. It makes > little sense to try to implement these things in C, since C neither has a > well-defined concurrent semantics of its own, nor does it expose the > semantics of the underlying machine in a usable way. That's why you can > only work around various problems by inhibiting optimizations: it is impossible > to write correct code in C that meets the requirements, only code that happens > to work for particular implementations of C. Do you need to stop an assembler optimiser to break multithreaded code? How do you avoid that a linker will do any damage to the desired execution paths? Regards, Markus .