From: Brian Candler Date: 2009-09-14T17:52:23+09:00 Subject: Re: Global Mutex? Abhinav Saxena wrote: > I used something like this using "ln -s" system command. Used to work > great, > so if you want a simple approach and implementation you can use it. One > catch: if the process which has the lock dies in between, you will have > to > ensure locks are properly released. Both versions I proposed don't suffer from this problem. - if you flock a file, the lock is dropped when the process owning it dies - if you synchronize using 'yield' within a DRb server, then if the client dies the TCP connection will be dropped and the block will terminate. -- Posted via http://www.ruby-forum.com/.