[#3006] mismatched quotation — "stevan apter" <apter@...>

ruby documentation uses a punctuation convention i've never seen

13 messages 2000/05/27

[ruby-talk:02915] Re: mutex mechanism?

From: gotoken@... (GOTO Kentaro)
Date: 2000-05-21 23:33:30 UTC
List: ruby-talk #2915
Hi, 

In message "[ruby-talk:02914] mutex mechanism?"
    on 00/05/21, Andrew Hunt <Andy@Toolshed.Com> writes:
>Can someone please educate me on the preffered method of handling
>mutual exclusion in threads?  It would seem that Thread.critical isn't
>quite sufficient, and their exists a number of library modules that
>provide some form of mutex or other synchronization mechanism.

For example, singlton.rb uses Thread.critical.  It seems to be the
lightest way to unlock surely.

If one would choose readability rather than efficiency, she should 
use Mutex#synchronize. 

I think there isn't a panacea for all situations. 

>(Side note -- for major releases, might it be a good idea to prune the 
>distribution tree to remove experimental or unsupported modules?  It
>might create less confusion for novices...)

Well, it sounds nice, but the work may be hard...

-- gotoken

In This Thread