View Single Post
Join Date: Mar 2004
Posts: 1,620
Reputation: kc0arf is a jewel in the rough kc0arf is a jewel in the rough kc0arf is a jewel in the rough 
Solved Threads: 50
Team Colleague
kc0arf kc0arf is offline Offline
Posting Virtuoso

Re: Need help with CPU scheduling algorithms

 
0
  #3
Jul 6th, 2004
Hello,

The guidelines are rather simple: the student needs to show some work and effort, meaning code and talking the problem out. All are welcome to discuss the theory (like you did chainsaw), but we generally do not offer code until the student puts some on paper, and then we can go through it as a group. We strongly discourage someone else posting the answer "working code", as then the student didn't learn.

Bob, what I suggest is your next step is to plot out the code on how you think this should work. You mentioned you understand the algorithms, but do not know how to encode them properly. You might want to consider PsuedoCode

  1.  
  2. // Bob's Program
  3. // Date
  4.  
  5. // This is what my program does
  6. // Goal is to obtain this
  7.  
  8. // Here are some Variables that the whole program needs
  9.  
  10. // This function does one schedule means
  11.  
  12. // This function does something else
  13.  
  14. // This is the main part of the program
  15. // Read in data from disk
  16. // While !done, do this
  17. // function 1
  18. // function 2

You get the idea. Build out your Outline of the code, and we can go from there.

Christian