0 Replies - 556 Views - Last Post: 26 April 2012 - 01:43 PM Rate Topic: -----

#1 dougyno1  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 78
  • Joined: 06-May 11

Pseudo code algorithm question. Making programme in java

Posted 26 April 2012 - 01:43 PM


I am not 100% sure this is the correct section, but I have an assignment where we are given a pseudo code for an algorithm, shortest remaining time first, cpu scheduling. We're going to implement a programme that will make the correct calculations, but were wondering if someone with some knowledge on the subject could check line four of the question to see if it is correct or not as I cannot seem to make sense of it.

Thank you.

pseudo code:

Shortest remaining time first
1 If a new process becomes ready, compare remaining time of every processes in a READY Queue
2 Pick up the one that has the shortest remaining time
3 Set counter to N (the length of the process)
4 Do display the name of the process
while counter = counter -1

5 Go to 1 if READY Queue is not empty
6 End

Is This A Good Question/Topic? 0
  • +

Page 1 of 1