this is my code:
wait(){ while(S<=0) //puts the thread in the block list until it wakes up(by calling post) S = S-1 }
ther