From: gotoken@... (GOTO Kentaro) Date: 2000-05-22T08:33:30+09:00 Subject: [ruby-talk:02915] Re: mutex mechanism? Hi, In message "[ruby-talk:02914] mutex mechanism?" on 00/05/21, Andrew Hunt 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