On Tue, 2004-07-20 at 15:18, Shachar Shemesh wrote: > Dvir Volk wrote: > > > fifo's must be thread safe, because they support communication between > > a number of processes. > > but if all the threads are in the same process, and there's so little > > data per read/write, why not use a queue inside the app? that does > > involve mutexes, but it's rather simple and fast locking. i did that > > with an stl deque object in an app once, and it works great. By the way, I've did a small benchmark that show Unix Domain sockets with DGRAM, (And you can always use CODGRAM for your purpose), are *much* faster than user space queues and mutexes.
Kobi. > > > A queue does not block on reading from it. I.e. - I have no way of > saying "halt this thread until there is something in this queue". > > If you have something that is ready-to-deploy, do send a link. > > Shachar > > ================================================================= > To unsubscribe, send mail to [EMAIL PROTECTED] with > the word "unsubscribe" in the message body, e.g., run the command > echo unsubscribe | mail [EMAIL PROTECTED] > > ***************************** Finjan Software This e-mail and any attached files are confidential and may be legally privileged. The unauthorized use, disclosure or copying of this email or any information contained within it is strictly prohibited. This also confirms that Finjan Software's Vital Security for E-Mail has scanned this message for the presence of known viruses and potentially malicious code. Finjan Software - Prevention is the Best Cure! ***************************** ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
