C#或C ++中的反馈算法 [英] Feedback Algorithm in C# or c++

查看:107
本文介绍了C#或C ++中的反馈算法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想要量子2和量子4(RQ = 2和RQ = 4)的反馈算法(CPU调度)的源代码吗?

输入不受限制(用户可以定义进程数)?

有人可以帮我吗?

(反馈是一种动态算法

当流程从第一次出现时进入RQ0

从第一次运行进入待机状态时,它将进入RQ1

从每次运行开始,它都会进入下一个低优先级队列.

最短的过程迅速结束,而较长的过程缓慢下降.

在所有队列(低优先级队列除外)中,它使用简单的FCFS解决方案.

将进程放在低优先级队列中时,它不会崩溃. ‌但是反复回到最近的队列

完成它的运行.它可以轮换.)

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 .)

推荐答案

你好

也许有帮助:

FCFS(先到先服务)CPU调度
Hello

Maybe it help:

FCFS (First Come First Serve) CPU Scheduling


这篇关于C#或C ++中的反馈算法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆