短程调度 中程调度 长程调度
生活随笔
收集整理的這篇文章主要介紹了
短程调度 中程调度 长程调度
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
分時操作系統(tǒng)中,進程總是在不同的狀態(tài)切換。一個進程在生命周期中一般會存在5中狀態(tài)(也可以說是7種),包括 new(創(chuàng)建),ready(就緒),running(運行),waitting(等待),(terminal)終止。
而負責(zé)進程在 新建,就緒,運行,等待(阻塞)這幾個狀態(tài)轉(zhuǎn)變的一個程序就是操作系統(tǒng)中的 scheduler (調(diào)度程序)。
其中,短程調(diào)度(進程調(diào)度),是負責(zé)從就緒隊列中選擇一個進程執(zhí)行。詳細特點有三點:
1.selects which process should be executed next and allocates CPU. 2.Sometimestheonly scheduler in a system 3.Short-termscheduleris invoked frequently (milliseconds) T (must be fast) 長程調(diào)度負責(zé)選擇進程進入就緒隊列。具體特點是: 1.selects which processes should be brought into the ready queue. 2.Long-termscheduleris invoked? infrequently (seconds,minutes) T(may be slow) 3.The long-term scheduler controls the degree of multiprogramming 中程調(diào)度負責(zé)從內(nèi)存中移除進程(等待一段時間,內(nèi)存里面不爆滿的時候再調(diào)入),降低程序多道度。 removes processes from memory (and from active contention for the CPU),and thus reduces the degree ofmultiprogramming. At some later time, theprocesscan be reintroduced into memory and its execution can be continuedwhere it left off
中程調(diào)度示意圖
總結(jié)
以上是生活随笔為你收集整理的短程调度 中程调度 长程调度的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 有关 给Layout设置监听事件后,与L
- 下一篇: (软件工程复习核心重点)第十二章软件项目