




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、操作系統(tǒng)操作系統(tǒng)Chapter10-OSChapter10-OS多處理器調(diào)多處理器調(diào)度和實(shí)時(shí)調(diào)度度和實(shí)時(shí)調(diào)度210.1 Multiprocessor Scheduling -Classifications of Multiprocessor SystemsMultiprocessor systems : 包含兩個(gè)或更多處理器的計(jì)算機(jī)系統(tǒng)Loosely coupled or distributed multiprocessor, or cluster (集群系統(tǒng))l Each processor has its own memory and I/O channelsFunctionally sp
2、ecialized processors (Master Slave)l Such as I/O processorl Controlled by a master processorTightly coupled multiprocessing(緊密耦合)l Processors share main memory l Controlled by operating system1. 執(zhí)行機(jī) 310.1 Multiprocessor Scheduling -10.1.1 ParallelismIndependent ParallelismCoarse and Very Coarse-Grai
3、ned ParallelismMedium-Grained ParallelismFine-Grained Parallelism4Independent Parallelism Separate application or job No synchronization among processes Example is time-sharing system5Coarse and Very Coarse-Grained Parallelism Synchronization among processes at a very gross level Good for concurrent
4、 processes running on a multiprogrammed uniprocessor Can by supported on a multiprocessor with little change6Medium-Grained Parallelism Single application is a collection of threads Threads usually interact frequently7Fine-Grained Parallelism Highly parallel applications Specialized and fragmented a
5、rea810.1 Multiprocessor Scheduling -10.1.2 Scheduling Assignment of processes to processors Use of multiprogramming on individual processors Actual dispatching of a process9 Assignment of Processes to Processors Treat processors as a pooled resource and assign process to processors on demand Permane
6、ntly assign process to a processor Dedicate short-term queue for each processor Processor could be idle while another processor has a backlog10 Assignment of Processes to Processors Global queue Schedule to any available processor Master/slave architecture Key kernel functions always run on a partic
7、ular processor Master is responsible for scheduling Slave sends service request to the master Disadvantages Failure of master brings down whole system Master can become a performance bottleneck Peer architecture Each processor does self-scheduling Complicates the operating system Make sure two proce
8、ssors do not choose the same process11 Use of multiprogramming on individual processors 粗粒度或無約束同步粒度(傳統(tǒng)多處理器),能進(jìn)行進(jìn)程間切換。 中等粒度 平均性能更重要1210.1.3 Process Scheduling 雙CPU系統(tǒng)中,進(jìn)程采用各種調(diào)度算法比較,系統(tǒng)吞吐量的變換很小。 對(duì)于多CPU系統(tǒng),調(diào)度算法的選擇不像在單處理器中那種重要。 1310.1.4 Thread Scheduling Executes separate from the rest of the process An ap
9、plication can be a set of threads that cooperate and execute concurrently in the same address space Threads running on separate processors yields a dramatic gain in performance14Multiprocessor Thread Scheduling Load sharing Processes are not assigned to a particular processor Gang scheduling A set o
10、f related threads is scheduled to run on a set of processors at the same time Dedicated processor assignment Threads are assigned to a specific processor Dynamic scheduling Number of threads can be altered during course of execution15 Load Sharing Load is distributed evenly across the processors No
11、centralized scheduler required Use global queues16Disadvantages of Load Sharing Central queue needs mutual exclusion May be a bottleneck when more than one processor looks for work at the same time Preemptive threads are unlikely resume execution on the same processor Cache use is less efficient If
12、all threads are in the global queue, all threads of a program will not gain access to the processors at the same time17 Gang Scheduling Simultaneous scheduling of threads that make up a single process Useful for applications where performance severely degrades when any part of the application is not
13、 running Threads often need to synchronize with each other18Scheduling Groups19 Dedicated Processor Assignment When application is scheduled, its threads are assigned to a processor Some processors may be idle No multiprogramming of processors20 Dynamic Scheduling Number of threads in a process are
14、altered dynamically by the application Operating system adjust the load to improve utilization Assign idle processors New arrivals may be assigned to a processor that is used by a job currently using more than one processor Hold request until processor is available Assign processor a jog in the list
15、 that currently has no processors (i.e., to all waiting new arrivals)2110.2 Real-Time Systems Tasks or processes attempt to control or react to events that take place in the outside world These events occur in “real time” and tasks must be able to keep up with them Correctness of the system depends
16、not only on the logical result of the computation but also on the time at which the results are produced2210.2 Real-Time Systems Control of laboratory experiments Process control in industrial plants Robotics Air Traffic control ESP (Electronic Stablity Program ) Telecommunications Military command
17、and control systems23Characteristics of Real-Time Operating Systems Deterministic Operations are performed at fixed, predetermined times or within predetermined time intervals Concerned with how long the operating system delays before acknowledging an interrupt and there is sufficient capacity to ha
18、ndle all the requests within the required time24Characteristics of Real-Time Operating Systems Responsiveness How long, after acknowledgment, it takes the operating system to service the interrupt Includes amount of time to begin execution of the interrupt Includes the amount of time to perform the interrupt Effect of interrupt nesting25Characteristics of Real-Time Operating Systems User control User specifies priority Specif
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年中國可洗尿不濕行業(yè)市場(chǎng)全景分析及前景機(jī)遇研判報(bào)告
- 2025年中國可生物降解的環(huán)保塑料袋行業(yè)市場(chǎng)全景分析及前景機(jī)遇研判報(bào)告
- 計(jì)算機(jī)應(yīng)用技術(shù)專業(yè)教學(xué)標(biāo)準(zhǔn)(高等職業(yè)教育專科)2025修訂
- 2025年中國可充電吸塵器行業(yè)市場(chǎng)全景分析及前景機(jī)遇研判報(bào)告
- 2025年中國接近鞋(Approach Shoes)市場(chǎng)全景分析及前景機(jī)遇研判報(bào)告
- 中國防腐木市場(chǎng)供需格局及投資規(guī)劃研究
- 貨運(yùn)招商培訓(xùn)課件
- 中國電站用電纜行業(yè)市場(chǎng)發(fā)展前景及發(fā)展趨勢(shì)與投資戰(zhàn)略研究報(bào)告(2024-2030)
- 中國三合一復(fù)合布行業(yè)市場(chǎng)發(fā)展前景及發(fā)展趨勢(shì)與投資戰(zhàn)略研究報(bào)告(2024-2030)
- 承德杭氧氣體有限公司介紹企業(yè)發(fā)展分析報(bào)告模板
- 2019年4月27日山東省紀(jì)委監(jiān)委遴選公務(wù)員考試真題及答案
- ktv包房服務(wù)員崗位職責(zé)8篇
- 西安某大跨度鋼桁架人行天橋結(jié)構(gòu)設(shè)計(jì)分析
- 新疆全部及全國部分加氣站分布情況6
- 初中學(xué)段勞動(dòng)任務(wù)清單(七到九年級(jí))
- 2023年中國各地磁偏角
- 六維領(lǐng)導(dǎo)力專題知識(shí)
- 【護(hù)士資格考試】云南省精神病醫(yī)院模擬檢測(cè)練習(xí)題
- 高溫高壓設(shè)備警示牌
- YY 0731-2009大型蒸汽滅菌器手動(dòng)控制型
- GB/T 3246.2-2000變形鋁及鋁合金制品低倍組織檢驗(yàn)方法
評(píng)論
0/150
提交評(píng)論