On 28/09/06, Bogusław Brandys <[EMAIL PROTECTED]> wrote:
According to pthreads docs: "Mutexes can be applied only to threads in a
single process and do not work between processes as do semaphores."
Maybe semaphores are right solution ?


Could this help?  It is global to processes, and not just threads.
Not sure how you would use it though.  I'm not the expert on linux
internals.  ;-)

------  man futex --------------
<snip>
A futex is identified by a piece of memory which can be shared  between
      different  processes.  In  these  different processes, it need not have
      identical addresses. In its bare form, a futex has semaphore semantics;
      it  is  a  counter  that can be incremented and decremented atomically;
      processes can wait for the value to become positive.
<snip>
------------------------------------

Regards,
 - Graeme -

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to