[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
threads and semaphores
- Subject: threads and semaphores
- From: chaudharyanurag at hotmail.com (Anurag Chaudhary)
- Date: Wed Jun 25 21:48:08 2003
how can I keep my parent thread working and responding to user inputs while
the child thread is waiting for a semaphore using semop() which is held by
some other process.
In linux the parent thread remains active in such situation but in freebsd
the parent thread stops responding until the child thread returns from
Is this implementation dependent feature.
Is there something that lets the child thread release resources while
waiting for the semaphore.
I used pthread_yield() but didn't work.
I also tried to change the scheduling policy and priority of the child
thread but of no use.
I am using sys V threads with pthread library on freebsd 5.0 release.
Actually I am porting this code from linux to freebsd and facing this
somebody please suggest some workaround
Gift yourself a holiday. Treat your family like royalty.