:: Re: [DNG] Wirth's law
Page principale
Supprimer ce message
Répondre à ce message
Auteur: Didier Kryn
Date:  
À: dng
Sujet: Re: [DNG] Wirth's law
Le 25/07/2016 01:29, Rainer Weikusat a écrit :
> Sleeping on a contended mutex is implemented in this way. But that's
> supposed to be an exceptional case.


     This is why, while advertizing itself as a cool "don't care" 
feature, a mutex is problematic: the programmer should make sure 
contention is exceptional and there is no risk of dead-lock. This leads, 
in my opinion, to a rather restrictive usage of mutexes.


     Didier