DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Java (http://www.daniweb.com/forums/forum9.html)
-   -   CPU Scheduling Algorithm (http://www.daniweb.com/forums/thread43401.html)

sidereal Apr 15th, 2006 3:21 pm
CPU Scheduling Algorithm
 
Hey..
I am working on this project, where you have to simulate cpu scheduling for 10 processes. I have to use only 2 algorithms like FCFS and Priority.
The basic code would be randomly generating 2 files: "burst_time.txt" and
"priority.txt" and then reading the random times. I have to save all information like process ID , burst time and priority on a ProcessControlBlock class and use a ready queue for the implementation.
I have a problem linking ID and burst time, since the Priority algorithm changes the order in which processes enter the queue.
Could somebody help me with that??????

plssss


All times are GMT -4. The time now is 10:01 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC