The future of concurrent programming

BCS BCS at pathlink.com
Tue May 29 14:02:37 PDT 2007


Regan Heath wrote:
> That just leaves the deadlock you get when you say:
> 
> synchronize(a) { synchronize(b) { .. } }
> 
> and in another thread:
> 
> synchronize(b) { synchronize(a) { .. } }
> 

what D need is a:

synchronize(a, b) // gets lock on a and b but not until it can get both

Now what about where the lock are in different functions.... :b



More information about the Digitalmars-d mailing list