public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download: 
* [gentoo-dev] What is the fastest mechanism for ipc communication under the gentoo-sources kernel
@ 2003-07-22 17:07 99% Jeff Adams
  0 siblings, 0 replies; 1+ results
From: Jeff Adams @ 2003-07-22 17:07 UTC (permalink / raw
  To: gentoo-dev

Hello,

I have a producer process that makes updates to shared memory.  I need to
notify consumer processes (potentially multiple) as quickly as possible.

What I am looking for is a fast "wake-up" mechanism and a synchronization
mechanism so that events are not lost.

I'm currently using semaphores as the wake up mechanism.  Question is this
the fastest way to do this without going into a tight loop (waste of
processor cycles)?

I'd also have the issue of clients showing up asynchronously.  If I just use
semaphores counts based on the number of clients I run the risk of missing a
client.  Also if the clients process events too slowly then the producer
will keep incrementing the semaphore beyond the client count.  Then if one
client is faster than the others it may get awakened multiple times for the
same event.

Any suggestions?

Thanks in advance!




--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2003-07-22 17:07 99% [gentoo-dev] What is the fastest mechanism for ipc communication under the gentoo-sources kernel Jeff Adams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox