[so] Wait for zero

Alexandru Marinescu alexandru.marinescu at yahoo.com
Tue Apr 8 23:21:04 EEST 2008


In linux in momentul in care se face 
struct sembuf op = {0, 0, 0};
semop(sem, &op, 1);

Un proces va astepta ca primul semafor din multimea de semafoare descrise de sem sa ajunga la valoarea 0.

Cum pot face in Windows o blocare a unui proces pe un semafor pana cand acesta ajunge la zero?

Multumesc,
Alexandru Marinescu

       
---------------------------------
You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cursuri.cs.pub.ro/pipermail/so/attachments/20080408/aeb7c6e8/attachment.html 


More information about the so mailing list