Quoting Kobi Cohen-Arazi <[EMAIL PROTECTED]>:

The original design has some drawbacks. Fist of all
u need to understand that when threads are used, there are no
need to establish a solution that will suite to forked
processes.

You just need to create some class that will implement a queue.
Access to it will be blocked by a semaphore.
If you have a multiple producers semaphore will suite ideally.

> 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.

Again we are talking about threads. The are no need to copy
data to kernel, and than copy it back. So it will bot be faster at all.

=================================================================
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]

Reply via email to