Portable Conditional Wait for Inter-Process?
Pierre-Luc Drouin
pldrouin at pldrouin.net
Wed Mar 24 15:56:37 UTC 2010
Hi,
finally what I did is to create an array in a shared memory segment (I
was already using shared memory for these processes) where I write the
PIDs of the waiters such that the other process can SIGALRM them when it
is ready. The waiters wait for this signal with sigtimedwait and the
other process SIGALRM them as well if a signal is sent to it. I use a
lock-free algorithm with atomic primitives to save and load the PIDs to
the shared segment. It seems to be working quite well.
Thanks
Daniel Eischen wrote:
> On Sun, 21 Mar 2010, Pierre-Luc Drouin wrote:
>
>> Regarding process groups, how can I set two processes to belong to
>> the same process group if they don't have a parent-child relation?
>>
>> Thanks!
>
> Well, from skimming the man pages, I don't think you can
> do that. You can't somehow launch your clients and server from
> the same parent?
>
More information about the freebsd-threads
mailing list