Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://itpm.msu.su/LDP/lpg-0.4/node50.html
Дата изменения: Sun Apr 18 13:36:59 1999 Дата индексирования: Mon Oct 1 21:12:07 2012 Кодировка: |
In the semid_ds structure, there exists a pointer to the base of the semaphore array itself. Each array member is of the sem structure type. It is also defined in linux/sem.h:
/* One semaphore structure for each semaphore in the system. */ struct sem { short sempid; /* pid of last operation */ ushort semval; /* current value */ ushort semncnt; /* num procs awaiting increase in semval */ ushort semzcnt; /* num procs awaiting semval = 0 */ };
The PID (process ID) that performed the last operation
The current value of the semaphore
Number of processes waiting for resources to become available
Number of processes waiting for 100% resource utilization