durusmail: quixote-users: (slightly OT) suggestions for inter-process locks?
(slightly OT) suggestions for inter-process locks?
2004-08-23
2004-08-23
Re: (slightly OT) suggestions for inter-process locks?
2004-08-23
(slightly OT) suggestions for inter-process locks?
Jim Dukarm
2004-08-23
On Monday 23 August 2004 11:52, Graham Fawcett wrote:
> I need to implement a lock in a certain block of code, so that only one
> process at a time is will be able to execute the restricted block. (Note
> this is an inter-process lock, not an inter-thread lock, or I would just
> use the standard threading library.)
>
Would it be practical to run the restricted code in its own process as a
server (maybe using Medusa or sockets) which responds to only one request
from your application(s) at a time?  That would be a very portable solution.

Jim Dukarm
DELTA-X RESEARCH INC
Victoria BC Canada

reply