From: Rajinder Yadav Date: 2009-10-22T09:22:41+09:00 Subject: Re: Mutex confusion Robert Klemme wrote: > On 21.10.2009 08:02, Alex Young wrote: >> >> What would be broken if, hypothetically, the mutex behaviour were >> changed not to block if the current thread already holds the lock? >> Would any possible implementation introduce a race condition? > > You want Monitor or MonitorMixin then. Mutex is just not implemented > reentrant (for efficiency reasons I believe), that's all. > I need to find a better source for Ruby multi-threading, did not know about monitors. Great I picked up something new today! > > Kind regards > > robert > > -- Kind Regards, Rajinder Yadav http://DevMentor.org Do Good ~ Share Freely