Midterm Review David Ferry, Chris Gill

Slides:



Advertisements
Similar presentations
CAS3SH3 Midterm Review. The midterm 50 min, Friday, Feb 27 th Materials through CPU scheduling closed book, closed note Types of questions: True & False,
Advertisements

Cpr E 308 Spring 2004 Recap for Midterm Introductory Material What belongs in the OS, what doesn’t? Basic Understanding of Hardware, Memory Hierarchy.
Avishai Wool lecture Priority Scheduling Idea: Jobs are assigned priorities. Always, the job with the highest priority runs. Note: All scheduling.
Introduction to Operating Systems – Windows process and thread management In this lecture we will cover Threads and processes in Windows Thread priority.
Mid#1 Revision. CH1 Mind map Ch2 Mind map Types of Questions Short Answers (essay) True/False MCQ Problems Code to trace.
CS252: Systems Programming Ninghui Li Final Exam Review.
COP 4600 Operating Systems Spring 2011 Dan C. Marinescu Office: HEC 304 Office hours: Tu-Th 5:00-6:00 PM.
Minix Jeff Ward, Robert Burghart, Jeb Collins, Joe Creech.
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.
CSE 451: Operating Systems Section 5 Midterm review.
Multi-Tasking The Multi-Tasking service is offered by VxWorks with its real- time kernel “WIND”.
Managing Processors Jeff Chase Duke University. The story so far: protected CPU mode user mode kernel mode kernel “top half” kernel “bottom half” (interrupt.
Course Introduction David Ferry, Chris Gill Department of Computer Science and Engineering Washington University, St. Louis MO 1E81.
How & When The Kernel Runs David Ferry, Chris Gill Department of Computer Science and Engineering Washington University, St. Louis MO
Time Sources and Timing David Ferry, Chris Gill CSE 522S - Advanced Operating Systems Washington University in St. Louis St. Louis, MO
Linux Boot Process on the Raspberry Pi 2 1 David Ferry, Chris Gill CSE 522S - Advanced Operating Systems Washington University in St. Louis St. Louis,
Interrupts and Interrupt Handling David Ferry, Chris Gill CSE 522S - Advanced Operating Systems Washington University in St. Louis St. Louis, MO
Interrupt Handler Migration and Direct Interrupt Scheduling for Rapid Scheduling of Interrupt-driven Tasks Reviewer: Kim, Hyukjoong ESLab.
Processes David Ferry, Chris Gill CSE 522S - Advanced Operating Systems Washington University in St. Louis St. Louis, MO
Advanced Operating Systems CS6025 Spring 2016 Processes and Threads (Chapter 2)
Kernel Synchronization David Ferry, Chris Gill CSE 522S - Advanced Operating Systems Washington University in St. Louis St. Louis, MO
Introduction to Operating Systems Concepts
Linux Details: Device Drivers
Final Review David Ferry, Chris Gill
Scheduling of Non-Real-Time Tasks in Linux (SCHED_NORMAL/SCHED_OTHER)
Operating Systems Chapter 2 - Processes Vrije Universiteit Amsterdam
CS 6560: Operating Systems Design
How & When The Kernel Runs
Midterm Review Chris Gill CSE 422S - Operating Systems Organization
Time Sources and Timing
OPERATING SYSTEMS CS3502 Fall 2017
April 6, 2001 Gary Kimura Lecture #6 April 6, 2001
Linux Pipes and FIFOs David Ferry, Chris Gill
Department of Computer Science and Engineering
Kernel Tracing David Ferry, Chris Gill
Processes David Ferry, Chris Gill
Time Sources and Timing
Semester Review Chris Gill CSE 422S - Operating Systems Organization
KERNEL ARCHITECTURE.
Interrupts and Interrupt Handling
The Active Object Pattern
More examples How many processes does this piece of code create?
COP 4600 Operating Systems Spring 2011
Modified by H. Schulzrinne 02/15/10 Chapter 4: Threads.
Chapter 2: The Linux System Part 3
Enforcing Real-Time Behavior I
Threads and Concurrency
CSE 451 Autumn 2003 Section 3 October 16.
Linux Details: Device Drivers
Multithreaded Programming
Top Half / Bottom Half Processing
Introduction to Operating Systems
Kernel Synchronization I
Operating Systems : Overview
LPC2148 ARM7 myKernel Details
Midterm Review Brian Kocoloski
How & When The Kernel Runs
Semester Review Brian Kocoloski
Kernel Synchronization II
Time Sources and Timing
Operating Systems : Overview
- When you approach operating system concepts there might be several confusing terms that may look similar but in fact refer to different concepts:  multiprogramming, multiprocessing, multitasking,
Kernel Tracing David Ferry, Chris Gill, Brian Kocoloski
Scheduling Classes and Real-Time Scheduling in Linux
Interrupts and Interrupt Handling
Processes David Ferry, Chris Gill, Brian Kocoloski
CSE 153 Design of Operating Systems Winter 2019
User-level Memory Chris Gill, David Ferry, Brian Kocoloski
Shared Memory David Ferry, Chris Gill
Scheduling of Regular Tasks in Linux
Presentation transcript:

Midterm Review David Ferry, Chris Gill CSE 522S - Advanced Operating Systems Washington University in St. Louis St. Louis, MO 63130

CSE 522S – Advanced Operating Systems Exam Scope Questions derived from slides Split between comprehension and analysis Studios useful for analysis & concepts 9 questions 81 minutes 9 minutes per question Does not cover “details” slides (i.e. boot process and program execution) CSE 522S – Advanced Operating Systems

CSE 522S – Advanced Operating Systems Course Concepts Kernel execution: Timing: System calls Time sources Interrupt handlers Timers Kernel threads Timer granularity Benchmarking Kernel Programming: Tracing: Kernel modules Core kernel image Kernel tracing System call tracing CSE 522S – Advanced Operating Systems

CSE 522S – Advanced Operating Systems Course Concepts Processes: Kernel Synch: Process creation Mutexes Process address space Spinlocks Deadlock Race Conditions Scheduling: O(1) Scheduler CFS Scheduler Real-Time Scheduler Scheduler tensions CSE 522S – Advanced Operating Systems

CSE 522S – Advanced Operating Systems Example Question #1 Imagine you are implementing a new OS feature that communicates with user space. User programs request an action from the kernel, and the kernel returns some data. Consider two options for the interface: Give two advantages of implementing a new system call (4 points): Give two advantages of using a kernel module that reads and writes files (4 points): If you decide to use a kernel module. What must end users do in order to use your future software patches (2 points)? CSE 522S – Advanced Operating Systems

CSE 522S – Advanced Operating Systems Example Question #2 You have a periodic system where the scheduler is invoked every 1ms to reschedule tasks, and your system has five tasks, which will consume 3ms, 3ms, 4ms, 5ms, and 7ms of processor time. Suppose your system schedules tasks in FIFO order, what is the longest a task might wait before being scheduled (4 points)? Suppose your system schedules tasks in round-robin order, what is the longest a task might wait before being scheduled (4 points)? Rank the round-robin and FIFO schedulers as as either “HIGH” or “LOW” for each of: response time, overhead, fairness (6 points). CSE 522S – Advanced Operating Systems

CSE 522S – Advanced Operating Systems Example Question #3 Suppose you’re writing a new feature with a shared data structure. For each of the situations below, say whether to use a mutex or a spinlock and argue why (3 points each): A large data structure that takes a long time to process. After your lock, accessing the structure requires taking a separate mutex lock. The data structure will be accessed from interrupt context. Why should you disable interrupts when accessing a spinlock that is also used by interrupt handlers (3 points)? CSE 522S – Advanced Operating Systems