A
Aryk Grosz
Is there any thing in ruby that acts as a global mutex?
For example, across multiple mongrels each running the same application,
is there anyway for them to communicate between them and do something
like
global_semaphore.synchronize do
#block
end
So far Im thinking this would involve a PID file that stores which ruby
process currently has focus, and then you would constantly poll this
file to see when it changes to another ruby process can take the focus.
Is there anything like this?
Aryk Grosz
Mixbook.com
For example, across multiple mongrels each running the same application,
is there anyway for them to communicate between them and do something
like
global_semaphore.synchronize do
#block
end
So far Im thinking this would involve a PID file that stores which ruby
process currently has focus, and then you would constantly poll this
file to see when it changes to another ruby process can take the focus.
Is there anything like this?
Aryk Grosz
Mixbook.com