操作系統中的多級隊列調度

多級隊列調度 (Multilevel queue scheduling)

Every algorithm supports a different class of process but in a generalized system, some process wants to be scheduled using a priority algorithm. While some process wants to remain in the system (interactive process) while some are background process when execution can be delayed.

每種算法都支持不同類別的過程,但是在通用系統中,某些過程希望使用優先級算法進行調度。 有些進程希望保留在系統中(交互進程),而有些進程則是后臺進程,因此可以延遲執行。

In general round-robin algorithm with different time quantum is used for such maintenance. The Number of ready queue algorithm between the queue, algorithm inside a queue algo but the queues may change from system to system. There is a various class of scheduling algorithm which is created for situations like in which the processes are easily divided into the different groups. There is a common division between the foreground(interactive) process and background (batch process). There are two types processes have the different response time, the different requirement of resources so these processes need different scheduling algorithms. The foreground processes have priority(externally defined) over background processes.

通常,使用具有不同時間量的循環算法來進行這種維護。 隊列之間的就緒隊列算法的數量,隊列算法內部的算法,但隊列可能因系統而異。 針對各種情況創建了各種類別的調度算法,在這些情況下,流程很容易分為不同的組。 在前臺(交互)過程和后臺(批處理過程)之間存在共同的劃分。 有兩種類型的進程具有不同的響應時間,不同的資源需求,因此這些進程需要不同的調度算法。 前臺進程(在外部定義)的優先級高于后臺進程。

In the multilevel queue scheduling algorithm partition the ready queue has divided into seven separate queues. Based on some priority of the process; like memory size, process priority, or process type these processes are permanently assigned to one queue. Each queue has its own scheduling algorithm. For example, some queues are used for the foreground process and some for the background process.

在多級隊列調度算法分區中,就緒隊列已分為七個單獨的隊列。 基于流程的某些優先級; 例如內存大小,進程優先級或進程類型,這些進程將永久分配給一個隊列。 每個隊列都有自己的調度算法。 例如,某些隊列用于前臺進程,而某些隊列用于后臺進程。

The foreground queue can be scheduled by using a round-robin algorithm while the background queue is scheduled by a first come first serve algorithm.

可以通過使用循環算法來調度前景隊列,而通過先到先服務算法來調度背景隊列。

It is said that there will be scheduled between the queues which are easily implemented as a fixed- priority preemptive scheduling. Let us take an example of a multilevel queue scheduling algorithm with five queues:

據說將在隊列之間進行調度,這很容易實現為固定優先級的搶占式調度。 讓我們以具有五個隊列的多級隊列調度算法為例:

  1. System process

    系統流程

  2. Interactive processes

    互動過程

  3. Interactive editing processes

    互動編輯過程

  4. Batch processes

    批處理

  5. Student processes

    學生流程

Highest priority

多級反饋調度 (Multilevel feedback scheduling)

Generally, we see in a multilevel queue scheduling algorithm processes are permanently stored in one queue in the system and do not move between the queue. There is some separate queue for foreground or background processes but the processes do not move from one queue to another queue and these processes do not change their foreground or background nature, these type of arrangement has the advantage of low scheduling but it is inflexible in nature.

通常,我們看到在多級隊列調度算法中,進程永久存儲在系統中的一個隊列中,并且不在隊列之間移動。 對于前臺或后臺進程有一些單獨的隊列,但是進程不會從一個隊列移動到另一隊列,并且這些進程不會更改其前臺或后臺性質,這些類型的安排的優點是調度少,但本質上不靈活。

Multilevel feedback queue scheduling it allows a process to move between the queue. This the process are separate with different CPU burst time. If a process uses too much CPU time then it will be moved to the lowest priority queue. This idea leaves I/O bound and interactive processes in the higher priority queue. Similarly, the process which waits too long in a lower priority queue may be moved to a higher priority queue. This form of aging prevents starvation.

多級反饋隊列調度它允許進程在隊列之間移動。 此過程是分開的,具有不同的CPU突發時間。 如果一個進程使用過多的CPU時間,那么它將被移到優先級最低的隊列。 這個想法將I / O綁定和交互過程留在了更高優先級的隊列中。 類似地,在較低優先級隊列中等待太長時間的過程可能會移至較高優先級隊列。 這種衰老形式可以防止饑餓。

The multilevel feedback queue scheduler has the following parameters:

多級反饋隊列調度程序具有以下參數:

  • The number of queues in the system.

    系統中的隊列數。

  • The scheduling algorithm for each queue in the system.

    系統中每個隊列的調度算法。

  • The method used to determine when the process is upgraded to a higher-priority queue.

    用于確定何時將進程升級到更高優先級隊列的方法。

  • The method used to determine when to demote a queue to a lower - priority queue.

    用于確定何時將隊列降級為優先級較低的隊列的方法。

  • The method used to determine which process will enter in queue and when that process needs service.

    用于確定哪個進程將進入隊列以及何時需要該進程的服務的方法。

Multilevel feedback scheduling

翻譯自: https://www.includehelp.com/operating-systems/multilevel-queue-scheduling-in-operating-system.aspx

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/380113.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/380113.shtml
英文地址,請注明出處:http://en.pswp.cn/news/380113.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

編寫一程序,輸入一個字符串,查找該字符串中是否包含“abc”。

import java.lang.String.*;//這里調用java.long.String.contains()方法; import java.util.Scanner; public class shit {public static void main(String[] args) {Scanner wsq new Scanner(System.in);String str wsq.next();boolean status str.contains(&qu…

顯示消息提示對話框(WebForm)

1: /// <summary>2: /// 顯示消息提示對話框。3: /// Copyright (C) Maticsoft4: /// </summary>5: public class MessageBox6: { 7: private MessageBox()8: { 9: }10: 11: …

借助格式化輸出過canary保護

0x01 canary保護機制 棧溢出保護是一種緩沖區溢出攻擊緩解手段&#xff0c;當函數存在緩沖區溢出攻擊漏洞時&#xff0c;攻擊者可以覆蓋棧上的返回地址來讓shellcode能夠得到執行。當啟用棧保護后&#xff0c;函數開始執行的時候會先往棧里插入cookie信息&#xff0c;當函數真…

什么叫灰度圖

任何顏色都有紅、綠、藍三原色組成&#xff0c;假如原來某點的顏色為RGB(R&#xff0c;G&#xff0c;B)&#xff0c;那么&#xff0c;我們可以通過下面幾種方法&#xff0c;將其轉換為灰度&#xff1a; 1.浮點算法&#xff1a;GrayR*0.3G*0.59B*0.11 2.整數方法&#xff1a;Gra…

各抓包軟件的之間差異_系統軟件和應用程序軟件之間的差異

各抓包軟件的之間差異什么是軟件&#xff1f; (What is Software?) Software is referred to as a set of programs that are designed to perform a well-defined function. A program is a particular sequence of instructions written to solve a particular problem. 軟件…

輸入一字符串,統計其中有多少個單詞(單詞之間用空格分隔)(java)

import java.util.*; class Example3{public static void main(String args[]){Scanner sc new Scanner(System.in);String s sc.nextLine();//這里的sc.nextLine&#xff08;&#xff09;空格也會記數&#xff1b;StringTokenizer st new StringTokenizer(s," ")…

為何苦命干活的人成不了專家?

所謂熟能生巧&#xff0c;但離專家卻有一個巨大的鴻溝&#xff0c;在農田干活的農民怎么也成不了水稻專家&#xff0c;推廣之&#xff0c;那些在本職工作上勤勤懇懇的人&#xff0c;在業務上總有一個不可沖破的瓶頸。 這種現象非常普遍&#xff0c;這就是為什么很多人很勤奮&am…

今天發布一個新網站www.heijidi.com

新網站發布了&#xff0c;歡迎訪問&#xff0c;關于國產機的 網站 www.heijidi.com 轉載于:https://www.cnblogs.com/liugod/archive/2008/03/26/1122753.html

ret2shellcdoe

ret2shellcode的關鍵是找到一個緩沖區&#xff0c;這個緩沖區是可讀寫寫可執行的&#xff0c;我們要想辦法把我們的shellcdoe放到這個緩沖區&#xff0c;然后跳轉到我們的shellcode處執行。 例子&#xff1a; #include <stdio.h> #include <string.h> char str1[…

stl取出字符串中的字符_從C ++ STL中的字符串訪問字符元素

stl取出字符串中的字符字符串作為數據類型 (String as datatype) In C, we know string basically a character array terminated by \0. Thus to operate with the string we define character array. But in C, the standard library gives us the facility to use the strin…

Object類的hashCode()方法

public class day11 {public static void main(String[] args) {Object obj1 new Object();int hashCode obj1.hashCode();System.out.println(hashCode);}} hashCode public int hashCode()返回該對象的哈希碼值。支持此方法是為了提高哈希表&#xff08;例如 java.util.Ha…

調整Tomcat上的參數提高性能[轉]

Webtop Performance Test w/ Tomcat(調整Tomcat上的參數提高性能) Login several users with one second between each login. After the 25th user, the users begin to experience poor performance, to the point where some users are receiving “Page cannot be display…

RecordSet中的open完全的語法

RecordSet中的open完全的語法是:SecordSet.Open Source,ActiveConnection,CursorType,LockType,Options例如&#xff1a; rs.open sql,conn,1,3CursorTypeadOpenForwardOnly 0 默認游標類型, 為打開向前游標, 只能在記錄集中向前移動。adOpenKeyset 1 打開鍵集類型的游標, 可以…

用篩選法求100之內的素數

#include <stdio.h> int main() {int i ,j ,a[100];//定義一個數組存放1~100&#xff1b;for(i2; i<100; i)//由于1既不是素數也不是質素&#xff0c;所以不用考慮1&#xff0c;直接從2開始&#xff1b;{a[i]i;//以次賦值&#xff0c;2~100&#xff1b;for(j2; j<i…

遠控免殺專題(20)-GreatSCT免殺

轉載&#xff1a;https://mp.weixin.qq.com/s/s9DFRIgpvpE-_MneO0B_FQ 免殺能力一覽表 幾點說明&#xff1a; 1、上表中標識 √ 說明相應殺毒軟件未檢測出病毒&#xff0c;也就是代表了Bypass。 2、為了更好的對比效果&#xff0c;大部分測試payload均使用msf的windows/mete…

Java LinkedList對象的get(int index)方法與示例

LinkedList對象的get(int索引)方法 (LinkedList Object get(int index) method) This method is available in package java.util.LinkedList.get(int index). 軟件包java.util.LinkedList.get(int index)中提供了此方法。 This method is used to retrieve an object or eleme…

Sql養成一個好習慣是一筆財富

我們做軟件開發的&#xff0c;大部分人都離不開跟數據庫打交道&#xff0c;特別是erp開發的&#xff0c;跟數據庫打交道更是頻繁&#xff0c;存儲過程動不動就是上千行&#xff0c;如果數據量大&#xff0c;人員流動大&#xff0c;那么我么還能保證下一段時間系統還能流暢的運行…

java上傳類

publicString doFormFile(FormFile file, String dir) { try { File f new File(dir); if (!f.exists()) { f.mkdir();//如果路徑不存在&#xff0c;創建 } InputStream in file.getInputStream(); …

C——用冒泡排序法、選擇排序法對隨機輸入的10個整數從小到大排序

//冒泡排序法 #include <stdio.h> int main() {int i,j,t,a[10];for(i0;i<10;i){scanf("%d",&a[i]);}for(i0;i<9;i)//10個數&#xff0c;進行9次循環&#xff0c;進行9趟比較{for(j0;j<9-i;j)//在每一趟比較中&#xff0c;進行9-i次比較{if(a[j]&…

遠控免殺專題(21)-HERCULES免殺

轉載&#xff1a;https://mp.weixin.qq.com/s/Rkr9lixzL4tiL89r10ndig 免殺能力一覽表 幾點說明&#xff1a; 1、上表中標識 √ 說明相應殺毒軟件未檢測出病毒&#xff0c;也就是代表了Bypass。 2、為了更好的對比效果&#xff0c;大部分測試payload均使用msf的windows/mete…