Midterm Spring 2000

Midterm Spring 2000 - Midterm Spring 2000 Name: 1. (4 pts.)...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
Midterm Spring 2000 Name: 1. (4 pts.) What is a real-time system, a hard real-time system, and a soft real-time system? 2. (4 pts.) What are the differences between kernel and user mode? 3. (4 pts.) Why modern CPU's have kernel and user mode? 4. (4 pts.) Why system calls use software interrupts? 5. (4 pts.) What are the steps for servicing an interrupt? 6. (4 pts.) How many program counters and sets of registers are stored in a single process table entry?
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
7. (4 pts.) In which state processes are most of the time and in what kind of programs this is not true? 8. (4 pts.) What are the advantages and disadvantages of using threads vs. using processes? 9. (4 pts.) What factors have to be considered when choosing the length of a quantum time? 10. (4 pts.) What are the advantages and disadvantages of using spinlocks vs. disable/enable interrupts? 11. (6 pts.) Write down the code for spinlock() and spinunlock() and explain briefly how it works.
Background image of page 2
12. (6 pts.) Assume that a computer executes the following jobs: Process Time needed for completion (ms) P1 40 P2 5 P3 30 Compute the average waiting time if the following scheduling algorithms are used: FCFS: SJF: Round Robin (Quantum=10ms):
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 8

Midterm Spring 2000 - Midterm Spring 2000 Name: 1. (4 pts.)...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online