- 18
- 0
- 约6.47千字
- 约 4页
- 2015-09-26 发布于重庆
- 举报
操作系统期中作业(答案)
操作系统期中作业
姓名: ___学号: 专业:
一、For each of the following statements, Choosing True or False
Binary semaphores are those that are used by no more than two threads. F
The Bankers algorithm is a way of preventing deadlock . F
A multi-level indexed file permits faster random access than a contiguously allocated file. F
An atomic operation is a machine instruction or a sequence of instructions that must be executed to completion without interruption. T
Deadlock is a situation in which two or more processes (or threads) are waiting for an event that will occur in the future. F
Starvation is a situation in which a process is denied access to a resource because of the competitive activity of other, possibly unrelated, processes. T
While a process is blocked on a semaphores queue, it is engaged in busy waiting. F
Mutual exclusion can be enforced with a general semaphore whose initial value is greater than 1. F
A printer is an example of a logical resource. F
Versions of OS/360 are still widely used today. F
When an executing process is stopped by the scheduler, it is said to be blocked. F
Interrupts are used to achieve a typical timesharing OS. T
二、Multiple Choice Questions
For each of the following questions, There is only one correct answer.
What is the purpose of system calls?
a) System calls allow user-level processes to gain resources from the operating system.
b) System calls are the standard interface between a user process and a kernel process.
c) System calls allow user-level processes to request services of the operating system.
d) There is no real purpose to system calls.
Threads belonging to the same process share the
a) stack b) data section
c) register set d) thread ID
In Many-to-One thread model, What would happen if a thread in a multithreaded process makes a blocking system call ?
a) the other threads of the process would continue to run
b) the entire process would get blocked
c) the blocking thread will get killed
d) th
您可能关注的文档
最近下载
- 沟通的力量:护理人文案例集锦.pptx VIP
- 2023-2024学年安徽省宣城市七年级(上)期末语文试卷(含详细答案解析).docx VIP
- 护理人文关怀实践案例与反思.docx VIP
- 匆匆那年钢琴谱五线谱.pdf VIP
- 《大学物理》2024-2025学年第一学期期末试卷及答案.docx VIP
- 橡胶和塑料制品加工系统粉尘防爆安全规范.docx VIP
- AQ_4232-2013 塑料生产系统粉尘防爆规范.pdf VIP
- 2024年江苏中职职教高考文化统考语文试卷真题(含答案详解).docx VIP
- GB50469-2016 橡胶工厂环境保护设计规范.pdf VIP
- 新能源电动汽车的充电桩建设与管理.pptx VIP
原创力文档

文档评论(0)