DOC PREVIEW
CORNELL CS 414 - Prelim 1 Review Session

This preview shows page 1-2-3-4-5 out of 15 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

COMS 414 - Prelim 1 Review SessionPrelim 1Before we begin …MultitaskingSlide 5SynchronizationSlide 7Vivek Presents …MonitorsSynchronization ProblemsDeadlockDeadlocksSlide 13Deadlock PreventionDeadlock AvoidanceCOMS 414 - Prelim 1 Review SessionMultiprocessing and SynchronizationSunny([email protected]) Vivek([email protected])Prelim 1•There are many, many resources available for your Prelim 1 needs: (presented in random order)–Your notes!–The book and its website–FA2000 Homeworks/Solutions–FA2000 Prelim 1 review slides–SP2001 Lecture notes–Newsgroup–Plenty of office hours!–Additional support by appointmentBefore we begin …•Any questions from the CS314 review session?–Register set, stack, heap–Program counter–Interrupts / exceptions–Interrupt priority levels–Programmable I/O vs. DMA–Polling–Memory protection (base/limit)Multitasking•What is a:–Process or Task?–Thread?•What is the difference between a program and a process?•What is in the PCB?•Differences between O/S processes and user processes?•Differences between user-level threads and kernel-level threads?Multitasking•What is kernel space?•What is user space?•What is a system call?•What is a context switch?•What states may a process be in?•How do processes go between states?•What is a race condition?Synchronization•What is a critical section?•What are the three requirements for protection of a critical section?•What is busy waiting?•What are atomic instructions?•What is a semaphore?Synchronization•Three levels of abstraction for concurrent programming:–Hardware instructions–O/S functions–Programming language constructsVivek Presents …•Classic Synchronization Problems•Monitors, Condition Variables and Language Support•Deadlocks, Prevention and AvoidanceMonitors•What is a monitor?•What are condition variables?•Differentiate between semaphores and condition variables.Synchronization Problems•Bounded buffer problem•Readers writers problem•Dining philosophers problemsDeadlock•What is a deadlock?•Necessary conditions for deadlock ?Deadlocks R1 R2....P1 P2P3R3Deadlocks.....P1 P2P3R3P4 R1 R2Deadlock Prevention Make sure that one of the necessary conditions does not hold -- Mutual exclusion -- Hold and Wait -- No Pre Emption -- Circular WaitDeadlock Avoidance•What is it?•What is Safe State?•Safety Check?•Bankers


View Full Document

CORNELL CS 414 - Prelim 1 Review Session

Documents in this Course
Security

Security

49 pages

Processes

Processes

24 pages

Deadlocks

Deadlocks

57 pages

Threads

Threads

5 pages

Threads

Threads

29 pages

Deadlocks

Deadlocks

36 pages

Load more
Download Prelim 1 Review Session
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Prelim 1 Review Session and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Prelim 1 Review Session 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?