COMS Prelim 1 Review Session

Slides:



Advertisements
Similar presentations
1 Interprocess Communication 1. Ways of passing information 2. Guarded critical activities (e.g. updating shared data) 3. Proper sequencing in case of.
Advertisements

Operating Systems ECE344 Midterm review Ding Yuan
CAS3SH3 Midterm Review. The midterm 50 min, Friday, Feb 27 th Materials through CPU scheduling closed book, closed note Types of questions: True & False,
Chapter 6 Concurrency: Deadlock and Starvation Operating Systems: Internals and Design Principles, 6/E William Stallings Patricia Roy Manatee Community.
Chapter 6: Process Synchronization
Operating Systems Operating Systems - Winter 2009 Chapter 2 - Processes Vrije Universiteit Amsterdam.
Cpr E 308 Spring 2004 Recap for Midterm Introductory Material What belongs in the OS, what doesn’t? Basic Understanding of Hardware, Memory Hierarchy.
Midterm Review. Agenda Part 1 – quick review of resources, I/O, kernel, interrupts Part 2 – processes, threads, synchronization, concurrency Part 3 –
Review: Chapters 1 – Chapter 1: OS is a layer between user and hardware to make life easier for user and use hardware efficiently Control program.
Avishai Wool lecture Introduction to Systems Programming Lecture 4 Inter-Process / Inter-Thread Communication.
COMS Prelim 1 Review Session Yejin Choi Daniel Williams
OS Spring 2004 Concurrency: Principles of Deadlock Operating Systems Spring 2004.
OS Fall’02 Concurrency: Principles of Deadlock Operating Systems Fall 2002.
1 Concurrency: Deadlock and Starvation Chapter 6.
CS533 - Concepts of Operating Systems 1 CS533 Concepts of Operating Systems Class 8 Synchronization on Multiprocessors.
Race Conditions CS550 Operating Systems. Review So far, we have discussed Processes and Threads and talked about multithreading and MPI processes by example.
1 Concurrency: Deadlock and Starvation Chapter 6.
General What is an OS? What do you get when you buy an OS? What does the OS do? What are the parts of an OS? What is the kernel? What is a device.
Chapter 6 Concurrency: Deadlock and Starvation Operating Systems: Internals and Design Principles, 6/E William Stallings Dave Bremer Otago Polytechnic,
CS510 Concurrent Systems Introduction to Concurrency.
Chapter 6 Process Synchronization Copyright © 2008.
CS 153 Design of Operating Systems Spring 2015 Midterm Review.
Midterm 1 – Wednesday, June 4  Chapters 1-3: understand material as it relates to concepts covered  Chapter 4 - Processes: 4.1 Process Concept 4.2 Process.
Cpr E 308 Spring 2004 Real-time Scheduling Provide time guarantees Upper bound on response times –Programmer’s job! –Every level of the system Soft versus.
Chapter 1 Computer System Overview Sections 1.1 to 1.6 Instruction exe cution Interrupt Memory hierarchy Cache memory Locality: spatial and temporal Problem.
Concurrency: Mutual Exclusion and Synchronization Chapter 5.
Process Synchronization.  Whenever processes share things, there is a chance for screwing up things  For example ◦ Two processes sharing one printer.
Chapter 7 -1 CHAPTER 7 PROCESS SYNCHRONIZATION CGS Operating System Concepts UCF, Spring 2004.
Chapter 6 – Process Synchronisation (Pgs 225 – 267)
1 Interprocess Communication (IPC) - Outline Problem: Race condition Solution: Mutual exclusion –Disabling interrupts; –Lock variables; –Strict alternation.
Exam Review Andy Wang Operating Systems COP 4610 / CGS 5765.
Silberschatz and Galvin  Chapter 3:Processes Processes –State of a process, process control block, –Scheduling of processes  Long term scheduler,
CSE 153 Design of Operating Systems Winter 2015 Midterm Review.
CS510 Concurrent Systems Jonathan Walpole. Introduction to Concurrency.
Introduction to operating systems What is an operating system? An operating system is a program that, from a programmer’s perspective, adds a variety of.
Process Synchronization. Concurrency Definition: Two or more processes execute concurrently when they execute different activities on different devices.
Operating Systems Chapter 2 - Processes Vrije Universiteit Amsterdam
Sarah Diesburg Operating Systems COP 4610
Process Synchronization
Applied Operating System Concepts -
Deadlocks (part II) Deadlock avoidance – (not reasonable)
Section 10: Last section! Final review.
Condition Variable Implementation (**with correction of signal**)
143a discussion session week 3
Synchronization Issues
COP 4600 Operating Systems Fall 2010
Andy Wang Operating Systems COP 4610 / CGS 5675
Midterm review: closed book multiple choice chapters 1 to 9
Process Synchronization
Module 7a: Classic Synchronization
Sarah Diesburg Operating Systems CS 3430
Exam Review Mark Stanovich Operating Systems COP
Concurrency: Mutual Exclusion and Process Synchronization
Andy Wang Operating Systems COP 4610 / CGS 5675
Major Topics in Operating Systems
February 5, 2004 Adrienne Noble
Basic Synchronization
Chapter 7: Synchronization Examples
Andy Wang Operating Systems COP 4610 / CGS 5765
Andy Wang Operating Systems COP 4610 / CGS 5765
Foundations and Definitions
, Part II Process Synchronization
CSE 153 Design of Operating Systems Winter 2019
Andy Wang Operating Systems COP 4610 / CGS 5765
Sarah Diesburg Operating Systems COP 4610
CSE 542: Operating Systems
Andy Wang Operating Systems COP 4610 / CGS 5675
CSE 542: Operating Systems
Sarah Diesburg Operating Systems CS 3430
Presentation transcript:

COMS 414 - Prelim 1 Review Session Multiprocessing and Synchronization Sunny(srg8@cornell.edu) Vivek(vu22@cornell.edu)

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 appointment

Before 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 constructs

Vivek Presents … Classic Synchronization Problems Monitors, Condition Variables and Language Support Deadlocks, Prevention and Avoidance

Monitors What is a monitor? What are condition variables? Differentiate between semaphores and condition variables.

Synchronization Problems Bounded buffer problem Readers writers problem Dining philosophers problems

Deadlock What is a deadlock? Necessary conditions for deadlock ?

Deadlocks R1 R2 . P1 P2 P3 R3

Deadlocks R1 R2 . . P1 P2 P3 . R3 P4

Deadlock Prevention Make sure that one of the necessary conditions does not hold -- Mutual exclusion -- Hold and Wait -- No Pre Emption -- Circular Wait

Deadlock Avoidance What is it? What is Safe State? Safety Check? Bankers Algorithm