复旦大学计算机科学技术学院
2 0 1 1 - 2 0 1 2 学年第一学期《操作系统》期末考试试卷
A 卷 共 8 页 2012 年1 月
课程代码:C O M P 1 3 0 0 0 8 . 0 1 - 0 4 考试形式:□开卷 □√闭卷
(本试卷答卷时间为120 分钟,答案必须写在试卷上,做在草稿纸上无效)
NO aids (books, notes, discussion etc.) are allowed. Ask the instructor if you have any questions.
Student ID Name Score
Question 1 2 3 4 Sum
Score
1. Choice(36%)fill in the blank with ONE most suitable answer
(1) Which of the following statements on memory management are NOT true. ( )
A. For each address translation, the system with TLB is definitely faster than without TLB.
B. TLB is transparent to application.
C. A TLB miss will definitely result in disk operation to swap in the page
D. A page table is still needed though TLB can achieve fast address translation.
(2) A semaphore s is initialized as 2. After four processes (P1, P2, P3, and P4) have done the following operations sequentially:(P1, wait(s)) -----.> (P2, wait(s)) -----.> (P3, wait(s)) -----.> (P4, signal(s)).which process is in BLOCK state? ( )
A none
B P1
C P2
D P3
(3) When designing a disk scheduling policy, which factor has the most significant impact on the disk I/O performance?( )
A. Latency of moving the disk head
B. Time required to read one sector from the disk
C. The average rotational delay
D. The maximal rotational delay
(4) A UNIX file system has 4-KB blocks and 4-byte disk addresses. The inode of file ‘X’ requires 10 direct entries and one indirect block which is half full. How large is the file in blocks?( )
A. 18
B. 266
C. 522
D. 1034
(5) Among following scheduling types, which pair are mainly used to adjust the degree of
multiprogramming? ( )
A. Long-term scheduling, and mid-term scheduling
B. Long-term scheduling, and short-term scheduling
C. Short-term scheduling, and mid-term scheduling
D. Short-term scheduling, and disk scheduling
(6) Which layer of I/O software issues a sequence of commands to the device controller? ( )
A. User-space I/O software
B. Device Independent I/O software
C. Device driver
D. Interrupt handler
(7) In a pure user-level threads (ULTs) system, there is a process with 3 threads. Which one of the following statements is correct? ( )
A. In a multiprocessor system, the 3 ULTs may be running at the same time
B. When one ULT in the process is in running state, it is certain that the process is holding a processor
thread技术C. When the process is in ready state, one thread may be in running state
D. When one thread issues a blocked system call, another thread in the process may be scheduled to run.
(8) A Linux file whose owner has UID = 12 and GID = 1 has mode rwxr-x---. Tom with UID = 6, GID = 1 tries to do some operations for the file, which one of the following operations is feasible?( )
A. Tom can read/write/execute the file.
B. Tom can read the file, but can not write the file.
C. Tom cannot execute any of the read/write/execute operation.
D. Tom can write the file, but not read/execute the file.
(9) A computer has 6 tape drives, with n processes competing for them. Each process may need two drives. For which maximal values of n is the system deadlock free? ( )
A. 3
B. 4
C. 5
D. 6
(10) Which one of the following actions is effective when thrashing is happening in a computer system?( )
A.Destroy some processes
B. Increase the size of disk swapping space
C. Increase the priorities of user processes
D. Upgrade the system with a high-speed CPU
(11) Which one of the following scheduling algorithms is non-preemptive and does NOT suffer from starvation? ( )
A. Static Priority-based
B. Highest Response Ratio Next
C. Round Robin
D. Shortest Process Next(SJF)
(12) Which one of the following events may cause the running process to be put back into the ready queue? ( )
A. An interrupt from I/O devices has occurred.
B. The process execute a wait() on a semaphore
C. The process tries to get a message from another process by invoking receive().
D. The process is accessing a page which is not resident in main memory.
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论