Exam Review Andy Wang Operating Systems COP 4610 / CGS 5675.

17
Exam Review Andy Wang Operating Systems COP 4610 / CGS 5675

description

Monitors, Condition Variables, and Readers-Writers Definitions Monitor Lock Condition variable

Transcript of Exam Review Andy Wang Operating Systems COP 4610 / CGS 5675.

Page 1: Exam Review Andy Wang Operating Systems COP 4610 / CGS 5675.

Exam Review

Andy WangOperating Systems

COP 4610 / CGS 5675

Page 2: Exam Review Andy Wang Operating Systems COP 4610 / CGS 5675.

Coverage Total: 50 points; 1 min / point 42 points based on lectures 16-23,

assignments 5-7 and project 2 8 points based on your ability to

apply various principles learned in the class

Page 3: Exam Review Andy Wang Operating Systems COP 4610 / CGS 5675.

Monitors, Condition Variables, and Readers-Writers Definitions

Monitor Lock Condition variable

Page 4: Exam Review Andy Wang Operating Systems COP 4610 / CGS 5675.

Monitors, Condition Variables, and Readers-Writers Short answers

Hoare vs. Mesa monitors Correct a broken solution (readers-

writers) Semaphores vs. monitors

Page 5: Exam Review Andy Wang Operating Systems COP 4610 / CGS 5675.

Deadlocks Definitions

Deadlock Preemptable and nonpreemptable

resources Starvation Checkpointing

Page 6: Exam Review Andy Wang Operating Systems COP 4610 / CGS 5675.

Deadlocks Short answers

Correct a broken solution (dining philosophers)

Four conditions for deadlocks Deadlock prevention techniques Banker’s algorithm Deadlock recovery techniques

Page 7: Exam Review Andy Wang Operating Systems COP 4610 / CGS 5675.

Memory Protection Definitions

Interprocess communication System call

Page 8: Exam Review Andy Wang Operating Systems COP 4610 / CGS 5675.

Memory Protection Short answers

Hardware-supported mechanisms Software-supported mechanisms Steps to switch between kernel and

user spaces Context switching between processes

vs. threads

Page 9: Exam Review Andy Wang Operating Systems COP 4610 / CGS 5675.

Address Translation Definitions

Segment External fragmentation Internal fragmentation Translation lookaside buffers

Page 10: Exam Review Andy Wang Operating Systems COP 4610 / CGS 5675.

Address Translation Short answers

Base-and-bound translation Segmentation-based translation Paging-based translation Segmented-paging translation Paged page tables

Page 11: Exam Review Andy Wang Operating Systems COP 4610 / CGS 5675.

Caching and TLBs Definition

Caching Temporal locality Spatial locality Cache pollution Translation lookaside buffer Virtually addressed cache Physically addressed cache

Page 12: Exam Review Andy Wang Operating Systems COP 4610 / CGS 5675.

Caching and TLBs Short answers

Design issues of caching Four types of cache misses Ways to perform TLB lookups Write-through vs. write-back policies

Page 13: Exam Review Andy Wang Operating Systems COP 4610 / CGS 5675.

Demand Paged Virtual Memory Definitions

Demand paging Page fault Transparent Belady’s anomaly Thrashing Working set

Page 14: Exam Review Andy Wang Operating Systems COP 4610 / CGS 5675.

Demand Paged Virtual Memory Short answers

Steps to carry out a page fault Page replacement policies

Page 15: Exam Review Andy Wang Operating Systems COP 4610 / CGS 5675.

Device Management Definitions

Polling/interrupts/DMA/double buffering

Device controller/device driver Memory-mapped I/O Disk-related terms Disk measurement metrics

Page 16: Exam Review Andy Wang Operating Systems COP 4610 / CGS 5675.

Device Management Short answers

Categories of I/O devices Ways to access a device Disk arm scheduling policies Latency and bandwidth computations

Page 17: Exam Review Andy Wang Operating Systems COP 4610 / CGS 5675.

Project 2 Definition

Kernel module Programming

Steps to add a system call