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 [EMAIL PROTECTED] http://www.actcom.co.il/~oron ICQ UIN: 16527398 "The future is here, it's just not evenly distributed yet." - William Gibson
pgp3Dez5vX3GL.pgp
Description: signature
