当前位置:文档之家› 浙江大学2005–2006学年秋季学期《操作系统原理》课程试卷及答案

浙江大学2005–2006学年秋季学期《操作系统原理》课程试卷及答案


12. Which of the following item should not be in the PCB (Process Control Block)? A.) process state B.) CPU-scheduling information C.) memory-management information D.) complete text section 13. A process will change its state from running to ready state when __________. A.) it has been selected for execution by scheduler B.) its time slice is finished C.) it waits for some event D.) the event it has been waiting for has occurred 14. Which of A.) from B.) from C.) from the following process state transition can not happen? ready state to running state running state to ready state running state to waiting state
浙江大学 –2006 学年秋季学期
《操作系统原理》课程期末考试试卷
开课学院:计算机学院、软件学院, 考试时间:_____年____月____日, 考生姓名: 答案: 题号 1-10 11-20 21-30 31-40 41-50 51-60 61-70 71-80 81-90 91-100 答 案 得分 ___学号: 考试形式:有限开卷,只允许带 3 张 A4 纸入场 所需时间:120 分钟 专业: 教师姓名:_________ 得分:
threads of a single process can not share __________. code files stacks priority
20. Which of the following is incorrect? A.) The system call fork may just duplicate the thread that invoked it. B.) The system call fork may duplicate all the threads of a process. C.) The system call exec may just replace the thread that invoked it. D.) The system call exec may replace the entire process. 21. For many-to-one model, if one thread within a single process is blocking, then _________. A.) The rest threads of this process can still keep running. B.) The whole process will be blocked. C.) The blocking thread will be cancelled. D.) The blocking thread will be always blocked.
For every following question, please select your best answer only!!!
OS_Theory_1
1. An operating system is a program that manages the __________. A.) computer hardware B.) computer software C.) computer resources D.) application programs 2. An operating system is designed for ease of use and/or __________. A.) speed B.) compatibility C.) resource utilization D.) flexibility 3. Which OS is the oldest? A.) UNIX B.) MULTICS C.) Windows 3.x D.) Windows XP 4. The evolution of operating systems for mainframes is roughly like from __________. A.) no software multi-programming multi-tasking B.) no software multi-tasking multi-programming C.) no software resident monitors multi-tasking multi-programming D.) no software resident monitors multi-programming multi-tasking 5. Users can create and destroy process by ________________. A.) function invocation B.) macro instruction C.) system calls D.) procedure invocation 6. __________ is to keep multiple jobs in memory simultaneously in order to keep the CPU busy. A.) batch processing B.) real-time processing C.) multiprogramming D.) parallel execution 7. What is the purpose of system calls? A.) System calls allow us to write assembly language programs. 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
OS_Theory_3
D.) from waiting state to running state 15. A waiting process will change to _________ if the waited event occurs. A.) running state B.) waiting state C.) waiting state and inside memory D.) ready state 16. An operating system manages processes by _________. A.) file control block B.) process control block C.) process priority D.) process text section 17. A message-passing system for an OS is _________. A.) A kind of direct communication B.) A kind of low-level communication C.) A kind of inter-process communication D.) A kind of symmetrical communication 18. We will A.) The B.) The C.) The D.) The 19. The A.) B.) C.) D.) have a sender sender sender sender rendezvous between the sender and the receiver if __________. is non-blocking and the receiver is non-blocking. is non-blocking and the receiver is blocking. is blocking and the receiver is non-blocking. is blocking and the receiver is blocking.
OS_Theory_2
system. D.) There is no real purpose to system calls. 8. Which of the following statement is incorrect? A.) Monolithic OS is usually difficult to modify. B.) Micro-kernels allow some system services to be implemented just as user programs. C.) Layered OS is more efficient that monolithic OS. D.) Virtual machines improve OS development and testing process. 9. Which of the following activity needs no special hardware support? A.) Process scheduling B.) timer management C.) memory mapping D.) interrupt system 10. Which of the following statement about processes is incorrect? A.) A process is dynamic. B.) A process has a lifetime. C.) A process is a set of instructions. D.) Multiple processes may execute concurrently. 11. One A.) B.) C.) D.) difference between a process and a program is __________. A process has states while a program has no states. A process has no states while a program has states. A process has resources while a program has no resources. A process has no resources while a program has resources.
相关主题