LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Suspend Function (https://www.linuxquestions.org/questions/linux-newbie-8/suspend-function-861082/)

karansinghdx 02-06-2011 06:07 PM

Suspend Function
 
Can anyone help me making a function "int suspend(int ThreadID)".
The thread with the specified thread ID should be moved to a suspended status. So If the thread is NOT the calling thread It should be removed from the ready list (the only place it could be if it exists and has not ended) and placed on a separate suspended list. If the calling thread is suspending itself (threadID equals current threads TID) then the current thread should be placed on the suspend list and a different ready thread should be dispatched.

please help me with just the logic here..

marco18 02-06-2011 08:22 PM

I think this is not the proper forum. You should post this in the Programming forum. You will get much more help there. Just an advice :)

http://www.linuxquestions.org/questions/programming-9/


All times are GMT -5. The time now is 04:20 AM.