Please support our Java advertiser: Lunarpages Java Web Hosting
Views: 2827 | Replies: 0
![]() |
•
•
Join Date: Apr 2006
Posts: 9
Reputation:
Rep Power: 0
Solved Threads: 0
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
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
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)





Linear Mode