I'm new here ... haven't had my warm welcome yet ;P
So i need your help with my program. I'm supposed to program a simulator of the reader writer problem without using threads. So i thought i could use a timer to interrupt the running process every 2 seconds to see if other processes want to enter the critical section (which is in my case a txt file where readers and writers manipulates data) like a trap and i can do what i want in the routine... and all of this is to show the use of semaphores.
The question is, is such timer possible? can i do that? and how ?
Can someone help me plz :)
Edited by zidaneez: n/a