LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   about selecting the thread to wake up (https://www.linuxquestions.org/questions/programming-9/about-selecting-the-thread-to-wake-up-124162/)

dummyagain 12-09-2003 06:22 AM

about selecting the thread to wake up
 
how to avoid waking up the thread that are not safe enough (which will cause deadlock)?

Mara 12-09-2003 04:27 PM

You can't, AFAIK. That's kernel job to wake a thread.
Well, you need to add extra semaphores to make sure there are no deadlocks. It's not always easy, but that's the only way I know.


All times are GMT -5. The time now is 07:28 AM.