CSC 453 - Operating Systems
Dr. R. M. Siegfried
Study Questions for the Midterm Exam
Definitions:
- Multiprogramming
- Batch
- Real-time
- DMA
- Supervisor mode
- Asymmetric multiprocessing
- Thread
- FCFS
- SJF
- Deadlock
- Real time operating system
- Process
- Symmetric multiprocessing
- Buffering
- DMA
- LAN
- Lottery Scheduling
- Kernel
- Thread
- SPOOLing
- Interrupt
- Trap
- Semaphores
- Monitors
Questions:
- Under what circumstances would a user be better off working on a time-sharing system, rather than on a stand-alone PC or workstation?
- What is the main advantage of multiprogramming? Would it be possible to design a multitasking operating system without multiprogramming?
- What is the difference between an interrupt and a trap? What is the use of each of these functions?
- What is the main advantage to the layered approach to operating system design?
- As enumerated in the text, enumerate three of the five major activities in regard to process management.
- Describe the differences between long-term and short-term scheduling of processes.
- What are the three most common states in which processes may be found? Enumerate and describe these states.
- What are the five states of a process? Show the various transitions through which a process can go from one state to another.
- What advantages do threads offer over heavyweight processes? What are the two different methods of supporting threads?
- Given the following sets of processes, with the CPU-burst lengths shown, assume that they arrive in the order P0, P1, P2, P3, and P4 at time t0.
- What is the order in which they will arrive given the following scheduling algorithms: FCFS, SJF, Round-Robin (quantum = 1) and a non-preemptive priority algorithm where smaller numbers imply higher priorities
- What is the average turnaround time for these four algorithms?
Process | Burst Time | Priority |
P0 | 4 | 1 |
P1 | 12 | 1 |
P2 | 2 | 3 |
P3 | 1 | 2 |
P4 | 3 | 3 |
- Why is memory caches useful?
- How does the distinction between monitor mode and user mode provide a basic form of protection to an operating system?
- What are semaphores and monitors? How are they different? How are they similar?
[Back to the notes index]