round robin
I am supposed to write a small program that will process a number of processes that will have a cpu job and io job each.
I have not taken the OO class, so not really have to implement patterns or threads.
I am just troubled....
We have to schedule the Round Robin algorithm. If one process has finished with the cpu, we have to schedule it for io. But same time, cpu needs to continue taking other jobs (processes), and so must the IO start running. So, I should have both running simulateously, which i don t see how to do. Lets say I have a global time variable. The teacher said we have to implement a pause button, so we can check what is at that given time, what processes are in the ReadQueue and what are in the IOqueue with the remaining times of the jobs.
I read something about threads. If I could make 2 threads, one for cpu jobs and one for IO jobs. but no threads use has the teacher said.
any ideas/help is welcome. thank you.

