I think this has something to do with process scheduling.
Start 0// starts at 0ms
Run 10 // runs for 10 ms
Disk 0 // no idea what this does, but it takes 10 ms
Run 30 // run 30 ms
End // terminates
Ok, So I read it from the text file using ifstream and put it into a linked list. I think this is an intro to multiprogramming. You start, move to Run 10, then it runs for 10 ms. While it runs, you move to the next start and check when it starts and move the run 20 into a queue, which tne moves into the CPU once the first 10 ms is finished. Not sure what the "disk" does here, though.
Question is: What do I do once it's in the linked list? How do I move to the second process and then back and forth ? I can't put it all in a queue at once. It goes in there one after another. Obviously, many processes start while one is still in the CPU. So they have to wait until the previous one is finished. It's just a simulation, of course. I think it will print out a report telling you how much time has elapsed etc. Is anybody familiar with this? I'm very confused about this.
Edited 4 Years Ago by XodoX