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