当前位置:网站首页>Chapter III processor scheduling exercise
Chapter III processor scheduling exercise
2022-06-28 23:11:00 【Wangchenfeng】
Catalog
One . Single topic selection ( common 10 topic ,83 branch )
1. ( Single topic selection ) The time slice rotation scheduling algorithm is to ( ).
Two . Completion ( common 2 topic ,17 branch )
One . Single topic selection ( common 10 topic ,83 branch )
1. ( Single topic selection ) The time slice rotation scheduling algorithm is to ( ).
A. Multiple terminals can get timely response from the system
B. Make the system efficient
C. Higher priority processes get timely response
D. need CPU The process with the least time is the first to do
My answer : C right key : A
0 branch
2. ( Single topic selection ) In a multiprocessing system with a single processor , When a process takes up the processor and how long it takes is determined by ( ) Decisive .
A. The corresponding code length of the process
B. The total time the process needs to run
C. Process characteristics and process scheduling strategy
D. What function does the process complete
My answer : C right key : C
8.3 branch
3. ( Single topic selection )( ) advantageous to CPU Busy homework , It's not good for /0 Busy homework .
A. Time slice rotation scheduling algorithm
B. First come first serve scheduling algorithm
C. Short assignments ( process ) Priority algorithm
D. Priority scheduling algorithm
My answer : B right key : B
8.3 branch
4. ( Single topic selection ) The following guidelines for selecting process scheduling algorithms are incorrect ( ).
A. Respond to interactive user requests as soon as possible
B. Maximize processor utilization
C. Improve the system throughput as much as possible
D. Appropriately increase the waiting time of the process ready queue
My answer : D right key : D
8.3 branch
5. ( Single topic selection ) Equipped with 4 Two assignments arrive at the same time , The execution time of each job is 2h, They run as a single channel on a single processor , The average turnaround time is ( ).
A. 1h
B. 5h
C. 2.5h
D. 8h
My answer : B right key : B
8.3 branch
6. ( Single topic selection ) Now there are three assignments arriving at the same time J1, J2 and J3, Their execution times are T1, T2, T3, And

. The system operates in a single channel mode and adopts short job first scheduling algorithm , Then the average turnaround time is ( ).
A. T1+T2+T3
B. (3xTl+2xT2+T3)/3
C. (T1+T2+T3)/3
D. (T1+2xT2+3xT3/3
My answer : B right key : B
8.3 branch
Analysis of the answer :
7. ( Single topic selection ) There are three assignments , The running time is 2h, 5h, 3h, Suppose they arrive at the same time , And run in a single channel on the same processor , Then the execution order with the smallest average turnaround time is ( ).
A. J1,J2,J3
B. J3,J2,J1
C. J2,J1,J3
D. J1,J3,J2
My answer : D right key : D
8.3 branch
8. ( Single topic selection ) One assignment 8:00 Arrival system , Estimated run time is 1h. if 10:00 Start executing the job , The response ratio is ( ).
A. 2
B. 1
C. 3
D. 0.5
My answer : C right key : C
8.3 branch
9. ( Single topic selection ) The process scheduling algorithm adopts fixed time slice rotation scheduling algorithm , When the time slice is too large , The time slice rotation algorithm will be transformed into ( ) Scheduling algorithm .
A. High response ratio first
B. First come, first served
C. Short process priority
D. None of the above options is right
My answer : B right key : B
8.3 branch
10. ( Single topic selection ) Yes 5 Batch jobs A、B、C、D、E Arrive almost at the same time , The estimated running time is 10、6、2、4、8, Its priority ( It's set externally ) Respectively 3、5、2、1、4, here 5 Is the highest priority . In the following scheduling algorithm , The average turnaround time is 14 Yes. ( ) Scheduling algorithm .
A. Time slice rotation ( The time slice is 1)
B. Priority scheduling
C. First come, first served ( In order 10、6、2、4、8)
D. Short job preferred
My answer : D right key : D
8.3 branch
Analysis of the answer :
Two . Completion ( common 2 topic ,17 branch )
11. ( Completion ) Yes 5 Batch jobs A To E All have arrived at the computing center , The running time is respectively 2 、4 、6 、8 and 10 minute : Their respective priorities are 1、2、3、4、5 、 here 5 For the most advanced . about 1) Time slice rotation algorithm 、2) Priority scheduling algorithm 、3) Short job first algorithm 、4) First come first serve scheduling algorithm ( In order of arrival C 、D 、B 、E 、A) , Ignore the process switching time , Calculate the average turnover time . Yes ( Time slice rotation algorithm each job gets the same 2 Minutes long time slice ; Yes 2) To 4) The algorithm uses single channel operation , Until the end .). The calculation results shall be filled in the corresponding brackets .(1) The average job turnover time of the time slice rotation algorithm is ().(2) The average job turnover time of the priority scheduling algorithm is ().(3) The average turnaround time of the short job first algorithm is ().(4) The average job turnover time of the first come first service scheduling algorithm is ().
My answer :**8.3 branch
(1) 18
(2) 22
(3) 14
(4) 19.2
right key :
(1) 18
(2) 22
(3) 14
(4) 19.2
Analysis of the answer :
answer :( l ) FCFS Scheduling algorithm

( 2 ) Priority scheduling algorithm

( 3 ) Time slice rotation

in turn ABCDEBCDECDEDEE Rotation execution .
( 4 ) SJF Scheduling algorithm

12. ( Completion ) The main memory of a multiprogramming system for users is 100K , Tape drive 2 platform , The printer 1 platform . Adopt dynamic partition memory management ( The program's move position in memory is not supported ), In a static way ( Once the equipment is allocated , Return after the process is used ) Assign peripherals , Ignore user jobs I/O Time . The existing job sequence is as follows :

Job scheduling uses FCFS Strategy , Allocate the low address area of main memory first , Each job in main memory is divided equally CPU Time . Now :( l ) The order in which jobs are scheduled ?( 2 ) The time when all jobs end ?( 3 ) What is the average turnaround time of the job ?( 4 ) What is the maximum operation turnaround time ? Please fill in the answers in the corresponding brackets .(1) The order in which jobs are scheduled is (), Fill in the job number , Separated by a space .(2) The time when all jobs end is (), Fill in the form when : branch .(3) The average turnaround time of the job is () minute .(4) The maximum turnaround time is () minute .
My answer :**8.7 branch
(1) 1 3 4 2 5
(2) 9:30
(3) 44
(4) 55
right key :
(1) 1 3 4 2 5
(2) 9:30
(3) 44
(4) 55
边栏推荐
- 【Word 教程系列第 1 篇】如何去除 Word 表格中的箭头
- 在线SQL转HTMLTable工具
- 【Flutter 問題系列第 71 篇】Flutter 中 Uint8List 和 Image 之間的相互轉換
- [flutter issues Series title 71] Mutual Conversion between uint8list and Image in flutter
- Is it safe and reliable for changtou school to help open a securities account? How to drive
- Google Earth Engine(GEE)——利用sentinel-2数据进行农作物提取分析
- Undefined symbol main (referred from entry9a.o).
- [chapter 71 of the flutter problem series] mutual conversion between uint8list and image in flutter
- [gateway development] handle the IP address segment represented by CIDR when NGX nested Lua
- C interview questions_ 20220627 record
猜你喜欢

第四章 存储器管理练习

At the end of June, how many people in Kangkang are ready to change jobs

微搭低代码中实现二维码生成

Cs5463 code module analysis (including download link)

在线SQL转HTMLTable工具
![[deep learning] (3) encoder mechanism in transformer, complete pytoch code attached](/img/cb/d385bee7a229e8d11f5fa8af66311f.gif)
[deep learning] (3) encoder mechanism in transformer, complete pytoch code attached
![[word Tutorial Series Part 1] how to remove arrows in word tables](/img/c7/dc57002b0e9d433c4dfac15d53713d.png)
[word Tutorial Series Part 1] how to remove arrows in word tables

2022年PMP项目管理考试敏捷知识点(4)

flowable 边界定时器

lock4j--分布式锁中间件--使用/实例
随机推荐
LeetCode 324 摆动排序 II[排序 双指针] HERODING的LeetCode之路
Interviewer: what is the internal implementation of strings in redis?
Chapter V virtual memory exercise
运维排查-使用hcache插件排查Buffer/cache占用过高
Websocket for im instant messaging development: concept, principle and common sense of mistakes
Linq连表查询
Google Earth engine (GEE) -- crop extraction and analysis using sentinel-2 data
网上注册股票开户很困难么?在线开户是安全么?
Didn't find an internship. He summed it up
Flowable boundary timer
2022年PMP项目管理考试敏捷知识点(4)
小样本利器2.文本对抗+半监督 FGSM & VAT & FGM代码实现
[matlab]函数定义与使用
C語言-單詞分析解析
LeCun预言AGI:大模型和强化学习都是斜道!我的世界模型才是新路
机器学习6-决策树
CMake教程(一)
收藏 | VLOOKUP函数的这些妙用你都知道吗?
Differences among CPU, GPU, TPU and NPU
想问问,股票开账户如何优惠开户?网上开户安全么?