You are here:

C++/c++ project

Advertisement


Question
Hello,
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


Answer
Hi 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

C++

All Answers


Answers by Expert:


Ask Experts

Volunteer


Joydeep Bhattacharya

Expertise

TSR, Socket and Very Complex Mathematical Problem

Experience

Worked on many OOP projects with design patterns

Organizations
http://www.scodz.com

Publications
http://www.scodz.com

Education/Credentials
Master of Computer Applications

Awards and Honors
Being a proud owner of a website of programming called http://www.scodz.com

Past/Present Clients
http://www.funforu.com http://www.dhoondho.com http://analysingc.50webs.com

©2016 About.com. All rights reserved.