C++/c++ project
Expert: Joydeep Bhattacharya - 11/13/2007
QuestionHello,
We are sorry, but rakshitha wasn't able to answer your question:
QUESTION: i have a project ..so it's about the "CPU scheduling approaches"
we were asked to program all these approaches in c++ then display it as a chart
.. so the user of our program can see which approach is more effective ..so i
need your help Dr.
ANSWER: Please, be specific about the type of approaches you are using!
---------- FOLLOW-UP ----------
QUESTION: i have a project ..so it's about the "CPU scheduling approaches"
we were asked to program all these approaches in c++ then display it as a chart
.. so the user of our program can see which approach is more effective ..so i
need your help Dr.
here is more details:
- the user should enter the number of processes that he want.
- then we should display " the process number , CPU burst , priority ,arrival
time" in a table.
- then we ask the user which type he want " preemptive or non-preemptive"
when he enter preemptive " we display the approaches of that type ( firstest job
first , round robin, priority)
when he enter non-preemptive " we display the approaches of that type ( first
come first served, priority, firstest job first)
- finally .. we calculate the waiting time of the selected approach and the
average waiting time ..and display the result as a chart 2 make comparisons
between these approaches
AnswerHi Mai
First take the inputs by creating a dynamic array and populate the array accordingly as you have got the inputs from the users.
Now comes the second phase of the work that is calling the appropriate function with proper parameters so that you can get the correct result then show the differences.
Now about the creation of the function I can help you with some resources at this moment you can go to this website where several CPU scheduling program is present you just take down the idea from these programs using simple data structure and implement it in your project
try out:
http://www.scodz.com
check the program present in this link specially
http://www.scodz.com/ViewProfile.php?uid=285
This is my personal website this doesnot contain any crap materials you can also join this website to get help from others and me.
For any other help please feel free to get back to me anytime.
regards
Joydeep Bhattacharya
http://www.scodz.com