944,209 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 4978
  • Java RSS
Apr 15th, 2006
0

CPU Scheduling Algorithm

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
sidereal is offline Offline
9 posts
since Apr 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: re: Trouble with GUI
Next Thread in Java Forum Timeline: cpu scheduling I don't know why is not working





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC