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..