
20 Jun
2009
20 Jun
'09
7:17 a.m.
Ion Gaztañaga wrote:
No, the API just allows V(1). And VxN operations is what I'm suggesting if N resources are freed by the producer. Is it usual to have V(N) in semaphores? I have never seen it.
Well, the Windows ReleaseSemaphore operation does off the top of my head. Also the older semop feature on UNIX (NB not sem_post). From opengroup: If /sem_op/ is a positive integer and the calling process has alter permission, the value of /sem_op/ is added to /semval/ James