操作系统期中作业(答案).docVIP

  • 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

文档评论(0)

1亿VIP精品文档

相关文档