¸®´ª½º ÇÁ·Î±×·¡¸Ó¸¦ À§ÇÑ °¡À̵å
/* ½Ã½ºÅÛ »ó¿¡¼ÀÇ °¢°¢ÀÇ ¼¼¸¶ÆÛ ÁýÇÕ¿¡ ´ëÇÑ semid ÀÚ·á ±¸Á¶ */
struct semid_ds {
struct ipc_perm sem_perm; /* permissions .. see ipc.h */
time_t sem_otime; /* last semop time */
time_t sem_ctime; /* last change time */
struct sem *sem_base; /* ptr to first semaphore in array */
struct wait_queue *eventn;
struct wait_queue *eventz;
struct sem_undo *undo; /* undo requests on this array */
ushort sem_nsems; /* no. of semaphores in array */
};
/* ½Ã½ºÅÛ¿¡¼ÀÇ °¢ ¼¼¸¶ÆÛ¸¦ À§ÇÑ ¼¼¸¶ÆÛ ±¸Á¶ */
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 */
};
Copyright (c) 1996,1997 by Euibeom.Hwang & SangEun.Oh All Rights Reserved
Email To:Webmaster ,
Another address
LAST UPDATE Nov 24,1997
Created Nov 24,1997