View Single Post
Jul 6th, 2004
0

Re: Need help with CPU scheduling algorithms

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

C++ Syntax (Toggle Plain Text)
  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
Team Colleague
Reputation Points: 121
Solved Threads: 57
Posting Virtuoso
kc0arf is offline Offline
1,629 posts
since Mar 2004