NimbusWireless
May 2nd, 2003, 04:19 PM
HI,
I work with C on Linux OS and particularly System V IPC(not POSIX)
Id like to know if there is a way to implement "Timeouts" on a particular semaphore, so that it does not hang waiting for a semaphore to become Zero.
Ive noticed the variables sem_otime and sem_ctime in the semid_ds structure which gets created for every semaphore set,
I wonder if setting a timeout has got anything to do with these variables or is there a separate function to do it.
I will greatly appreciate ur help.
Regards,
Linux User.
I work with C on Linux OS and particularly System V IPC(not POSIX)
Id like to know if there is a way to implement "Timeouts" on a particular semaphore, so that it does not hang waiting for a semaphore to become Zero.
Ive noticed the variables sem_otime and sem_ctime in the semid_ds structure which gets created for every semaphore set,
I wonder if setting a timeout has got anything to do with these variables or is there a separate function to do it.
I will greatly appreciate ur help.
Regards,
Linux User.