Operating Systems Spring 2026 Final Exam
This article is currently an experimental machine translation and may contain errors. If anything is unclear, please refer to original Chinese version. I am continuously working to improve the translation.
1. Multiple Choice 1%*20
I feel many are original Wangdao questions
2. Fill in the Blanks 1%*10
An operating system is software that manages ( )
Shared variables belong to ( ) resources
Three indicators for disk performance evaluation time ( ) ( ) ( )
3. True/False 1%*10
I forgot what was on it
4. Short Answer 5%*4
Which consumes more system resources, non-preemptive or preemptive scheduling? Give reasons
Explain the causes of deadlock and list the four necessary conditions
Briefly analyze and compare paged and segmented storage
Briefly describe what the physical structure of a file is, list them, and which one is suitable for large files
5. Comprehensive Questions 7+10+10+7+6
1.
A PV semaphore design problem
Bus driver - conductor
Drive - close/open door - sell tickets
The wording of the original question didn't feel very clear either
2.
int A[100][100];
for (int i = 0; i < 100; i++) {
for (int j = 0; j < 100; j++) {
A[i][j] = 0;
}
}A page can hold at most 200 int, the array is stored in row-major order, main memory can hold at most 3 pages, and initially the pages storing i j are already in main memory, using the LRU replacement algorithm
Analyze the number of page faults, and after execution which two pages will be in main memory, corresponding to which part of the array
3.
An access sequence (I remember it was 13 entries), 7 pages in total, main memory can hold at most 4 pages, analyze the page fault rate using LRU and FIFO respectively
4.
Given an index entry size of 4B and a disk block size of 2K, 8 direct indexes, and two first-level indexes and two second-level indexes each, calculate the maximum file size
5.
Given a disk access sequence, use FCFS and nearest-first to calculate the time, moving one track takes 3ms