CS 350- Midterm Exam Guide - Comprehensive Notes for the exam ( 13 pages long!)

329 views13 pages

Document Summary

Application view: the os provides an execution environment for running program. System view: the os manages the hardware resources of a computer system. Implementation view: the os is a concurrent, real-time program: define the kernel of the os. Reason #2: parallelism exposed by threads enables better processor utilization. Preemption is a kind of involuntary context switch of a running thread. To implement that, the thread library must have means of getting control (causing the thread library code to be executed) even though the application has not called a thread library function. Quantum: the amount of time a thread is allocated. 1: describe what happens when an interrupt occurs. Give pros and cons of disabling interrupts: describe peterson"s algorithm. How are they used in conjunction with locks: what are the differences between mesa-style cvs and hoare-style cvs , describe, at a high level, what a monitor does.