Click here to Skip to main content
15,949,686 members
Please Sign up or sign in to vote.
2.33/5 (3 votes)
See more:
Hi

I want the source code of feedback algorithm (CPU scheduling) with quantum 2 and quantum 4 (RQ=2 and RQ=4)?

with unlimited inputs (user can define the numbers of process)?

Can anybody Help me ?

(Feedback is a dynamic algorithm

When a process advent from first time it goes to RQ0

When from the first running go to standby it goes to RQ1

From every running it goes to the next low priority queue .

The shortest process is rapidly ending but the longer ones goes down slowly .

In the all of queue except of the low priority queue it use a simple FCFS solution .

When a process is placed in the low priority queue it cannot goes down . ‌But repeatedly came back to recent queue for

completing the running of it . It works Rotating shifts .)
Posted
Updated 27-Mar-12 0:27am
v5
Comments
[no name] 26-Mar-12 19:57pm    
Your question is not clear. It would assist if you provided more detailed information.

1 solution

 
Share this answer
 
Comments
Nima2012 27-Mar-12 6:29am    
Dear friend it is different from the FCFS.

Thank you.
JackDingler 27-Mar-12 12:02pm    
I don't think Shahin's point was to do your work for you, but to show you a related implementation.

If you need someone to write this for you, there are sites where you can contract programmers to write your code in return for $$$.

That is not what this site is for. If you have a specific C++ question we will be happy to help you, but you need to show us some code.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900