Chapter 1 Computer System Overview Sections 1.1 to 1.6 Instruction exe cution Interrupt Memory hierarchy Cache memory Locality: spatial and temporal Problem.

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
More on Processes Chapter 3. Process image _the physical representation of a process in the OS _an address space consisting of code, data and stack segments.
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: Process Synchronization
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, 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.
Concurrency in Shared Memory Systems Synchronization and Mutual Exclusion.
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.
Chapter 4: Threads. Overview Multithreading Models Threading Issues Pthreads Windows XP Threads.
Chapter 5 Processes and Threads Copyright © 2008.
1 Threads CSCE 351: Operating System Kernels Witawas Srisa-an Chapter 4-5.
Chapter 2: Processes Topics –Processes –Threads –Process Scheduling –Inter Process Communication (IPC) Reference: Operating Systems Design and Implementation.
5.6 Semaphores Semaphores –Software construct that can be used to enforce mutual exclusion –Contains a protected variable Can be accessed only via wait.
5.6 Semaphores Semaphores –Software construct that can be used to enforce mutual exclusion –Contains a protected variable Can be accessed only via wait.
3.5 Interprocess Communication Many operating systems provide mechanisms for interprocess communication (IPC) –Processes must communicate with one another.
3.5 Interprocess Communication
Advanced OS Chapter 3p2 Sections 3.4 / 3.5. Interrupts These enable software to respond to signals from hardware. The set of instructions to be executed.
Inter-Process Communication  most OSs provide several abstractions for inter- process communication: message passing, shared memory, etc.  communication.
© 2004, D. J. Foreman 2-1 Concurrency, Processes and Threads.
1 Chapter 5 Concurrency. 2 Concurrency 3 4 Mutual Exclusion: Hardware Support Test and Set Instruction boolean testset (int *i) { if (*i == 0) { *i.
Chapter 6: Process Synchronization. 6.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Interrupt Interrupt and Context Switching (Process.
Operating Systems CSE 411 CPU Management Oct Lecture 13 Instructor: Bhuvan Urgaonkar.
Processes Part I Processes & Threads* *Referred to slides by Dr. Sanjeev Setia at George Mason University Chapter 3.
1 Processes and Threads Chapter Processes 2.2 Threads 2.3 Interprocess communication 2.4 Classical IPC problems 2.5 Scheduling.
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.
Operating Systems Lecture 09: Threads (Chapter 4)
Chapter 6 Process Synchronization Copyright © 2008.
CS 153 Design of Operating Systems Spring 2015 Midterm Review.
MODERN OPERATING SYSTEMS Third Edition ANDREW S. TANENBAUM Chapter 2 Processes and Threads Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall,
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.
30 October Agenda for Today Introduction and purpose of the course Introduction and purpose of the course Organization of a computer system Organization.
OPERATING SYSTEMS DESIGN AND IMPLEMENTATION Third Edition ANDREW S. TANENBAUM ALBERT S. WOODHULL Yan hao (Wilson) Wu University of the Western.
Processes, Threads, and Process States. Programs and Processes  Program: an executable file (before/after compilation)  Process: an instance of a program.
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,
Operating Systems CSE 411 CPU Management Dec Lecture Instructor: Bhuvan Urgaonkar.
CSE 153 Design of Operating Systems Winter 2015 Midterm Review.
1/31/20161 Final Exam Dec 10. Monday. 4-7pm. Phelp 1160 Similar to midterm The exam is closed book. You can bring 2 page of notes (double sided) Nachos.
Operating Systems CMPSC 473 Signals, Introduction to mutual exclusion September 28, Lecture 9 Instructor: Bhuvan Urgaonkar.
1 Processes and Threads Part II Chapter Processes 2.2 Threads 2.3 Interprocess communication 2.4 Classical IPC problems 2.5 Scheduling.
Operating Systems Unit 2: – Process Context switch Interrupt Interprocess communication – Thread Thread models Operating Systems.
Operating Systems Chapter 2 - Processes Vrije Universiteit Amsterdam
Sarah Diesburg Operating Systems COP 4610
CS703 – Advanced Operating Systems
Process Synchronization
Section 10: Last section! Final review.
Concurrency: Mutual Exclusion and Synchronization
Andy Wang Operating Systems COP 4610 / CGS 5675
Mid Term review CSC345.
Midterm review: closed book multiple choice chapters 1 to 9
COMS Prelim 1 Review Session
Sarah Diesburg Operating Systems CS 3430
Exam Review Mark Stanovich Operating Systems COP
Lecture 2 Part 2 Process Synchronization
Concurrency: Mutual Exclusion and Process Synchronization
Operating Systems Lecture 1.
Major Topics in Operating Systems
February 5, 2004 Adrienne Noble
Chapter 6: Synchronization Tools
Andy Wang Operating Systems COP 4610 / CGS 5765
Andy Wang Operating Systems COP 4610 / CGS 5765
Process Synchronization
CSE 153 Design of Operating Systems Winter 2019
Process Synchronization
Andy Wang Operating Systems COP 4610 / CGS 5765
Sarah Diesburg Operating Systems COP 4610
Sarah Diesburg Operating Systems CS 3430
Presentation transcript:

Chapter 1 Computer System Overview Sections 1.1 to 1.6 Instruction exe cution Interrupt Memory hierarchy Cache memory Locality: spatial and temporal Problem 1.10

Chapter 2 Operating System Overview Sections 2.1 to 2.4 Objectives and functions of OS Evolution of OS Dual-mode operations: user and kernel modes (what and why) (hardware) interrupts [including timer, I/O, etc.] and (software) traps [including exceptions and system calls]

Chapter 3 Process Description & Control Sections 3.1 to 3.5 Process control block (PCB) Process creation Context switching (what and why) Shell: internal vs. external commands Processes and their relationships via ps –ef UNIX signals System calls fork(), exec(), opendir(), etc.

Chapter 3 Processes

Note that PID and process name may be different on different systems.

Chapter 4 Threads Sections 4.1 to 4.2 User-level threads vs. kernel-level threads Hybrid threads pthread program

User-level threads vs. Kernel-level threads User-Level vs. Kernel-Level Threads

scheduling of user-level threads vs. kernel-level threads Thread Scheduling

Chapter 5 Concurrency: Mutual Exclusion and Synchronization Sections 5.1 to 5.7 Race condition, critical section, and mutual exclusion On a uniprocessor system, interrupt is the root of all evil Hardware solutions: disable/enable interrupts, test&set, swap Semaphore: binary and counting Monitor and condition variables Bounded buffer producer/consumer problem: Both mutex and synchronization Message passing: send/receive, blocking/nonblocking Reader and writer problem

Chapter 5 Concurrency: Mutual Exclusion and Synchronization Programming with pthread