DMD 1.022 and 2.005 releases - what's wrong with threading?

dennis luehring dl.soluz at gmx.net
Sun Oct 7 11:02:43 PDT 2007


> I have several issues with it:
> 
>   - 'pause/resume' is not a useful thread primitive.  As we've seen by
>     sample code, just doing simple things is dreadfully difficult, and very
>     easy to get wrong, having deadlocks, starvation, and other issues.
> 
>   - 'pause/resume' aren't very efficient ways to implement synchronization,
>     at least not on Linux.  If this is the mechanism that Windows gives for
>     synchronization (which at least no longer is the case), something else
>     needs to be implemented on top of it.

pause and resume have absolute nothing to do with synchronzation on no 
platform

windows got

events (a bad version of condition), mutexes, critical sections, atomic 
operations and semaphores for such stuff

http://msdn2.microsoft.com/en-us/library/ms686360.aspx






More information about the Digitalmars-d mailing list