KillThread
|
Kills a thread
|
RunThread
|
Creates and runs a thread
|
Sleep
|
Sleeps for a given number of milliseconds
|
WaitThread
|
Waits for a thread to end
|
semcreate
|
Creates a semaphore
|
semdone
|
Destroy semaphore
|
seminit
|
Create and initialize a semaphore, with an empty wait queue, and couter=' val'
|
semp
|
'P' Operation on the 'sem' semaphore';
its counter is decremented;
if counter < 0, then the calling task is moved to the wait queue
|
semv
|
'V' Operation on the 'sem' semaphore';
its counter is incremented;
if counter >= 0 and the wait queue is not empty,
then one of the waiting tasks is extracted to continue running
|