Posted by: i_my September 27, 2008
I need urgent help with cpu scheduling c code
Login in to Rate this Post:     0       ?        
calling c experts.
I haven't finished my project that due tomorrow.
I need to write a cpu scheduling program in C language that takes it's input from a text file whose lines look like:

number of processes
type of scheduling (either SJF or SRTF)
1 0 30 40 35 40 0
2 20 40 50 30 40 0


where the first integer is the process id, the second is the arrival time, the third is the cpu burst followed by the io burst, which in turns follows cpu burst and so goes until 0 is found.
The next time is for the another process until EOF is found.

The schedule type of cpu burst is either SJF or SRTF.
there io burst is only FCFS.

the program outputs for each event including which process comes in the queue with is served, waiting time etc.


is there anyone who can help me with this? please email me at
naivethought@aim.com


Read Full Discussion Thread for this article