suggestion for process shared mutex
From: Ittay Freiman (ittay_at_qlusters.com)
Date: 07/30/03
- Next message: jwk: "Re: Alan Cox kernels"
- Previous message: johna_at_onevista.com: "Re: ping two interfaces on Linux PC"
- Next in thread: Catalin Marinas: "Re: suggestion for process shared mutex"
- Reply: Catalin Marinas: "Re: suggestion for process shared mutex"
- Reply: Neil Horman: "Re: suggestion for process shared mutex"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 29 Jul 2003 23:45:26 -0700
Hi,
I'm looking for a way of having a mutex shared by two independant
processes (not forks of one). I've tried using IPC semaphores, but
they cause me a lot of headache, especially managing a reference count
on them, so when the last process goes down they are destroyed (why
did they provide such a feature for shared memory, but not
semaphores??).
I can also use mmap-ed files, but then I need to create those files
somewhere and synchronize to them, which will be costly.
I'm already using shared memory. Is there a reference to someplace
that can explain how to implement a mutex in the shared memory?
Any other suggestions?
Thank you for your help,
Ittay
- Next message: jwk: "Re: Alan Cox kernels"
- Previous message: johna_at_onevista.com: "Re: ping two interfaces on Linux PC"
- Next in thread: Catalin Marinas: "Re: suggestion for process shared mutex"
- Reply: Catalin Marinas: "Re: suggestion for process shared mutex"
- Reply: Neil Horman: "Re: suggestion for process shared mutex"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|