From: Oron Peled (oron_at_nonexisting.hamakor.org.il)
Date: Tue 20 Jul 2004 - 23:31:01 IDT
On Tuesday 20 July 2004 17:17, Kobi Cohen-Arazi wrote:
> It is *much* faster than using semaphores, I've checked it. And yes - I
> could hardly believe it myself ;-)
If you talk about SysV semaphores (semget et-al), than they are
known to be quite expensive (a lot of extra funcionality, permissions,
semaphore sets, etc).
To implement mutex semaphores in multitheaded applications all that is
needed is condition variables (+ mutexes) which should be faster
(haven't benchmarked).
--
Oron Peled Voice/Fax: +972-4-8228492
oron_at_actcom.co.il http://www.actcom.co.il/~oron
ICQ UIN: 16527398
"The future is here, it's just not evenly distributed yet."
- William Gibson
=================================================================
To unsubscribe, send mail to linux-il-request_at_linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request_at_linux.org.il
This archive was generated by hypermail 2.1.7 : Tue 20 Jul 2004 - 23:43:35 IDT