Operating Systems. Chenyang Lu

Similar documents
Final Review. Chenyang Lu. CSE 467S Embedded Compu5ng Systems

Processes. Criteria for Comparing Scheduling Algorithms

Cyber-Physical Systems Scheduling

CS 5523: Operating Systems

Real-Time Scheduling Single Processor. Chenyang Lu

TinyOS and nesc. Ø TinyOS: OS for wireless sensor networks. Ø nesc: programming language for TinyOS.

File Systems: Fundamentals

CSE 520S Real-Time Systems

Critiques. Ø Critique #1

CS 2461: Computer Architecture I

Adaptive QoS Control for Real-Time Systems

Concurrent Programing: Why you should care, deeply. Don Porter Portions courtesy Emmett Witchel

Last Time. Bit banged SPI I2C LIN Ethernet. u Embedded networks. Ø Characteristics Ø Requirements Ø Simple embedded LANs

FairCom Press Release Archive:

Philips Lifeline. Ø Chenyang Lu 1

Performance & Energy

A Micro-Benchmark Evaluation of Catamount and Cray Linux Environment (CLE) Performance

Internet of Things Wireless Sensor Networks. Chenyang Lu

Fall Detection for Older Adults with Wearables. Chenyang Lu

Computer Power Management Rules. Ø Jim Kardach, re-red chief power architect, Intel h6p://

Real-Time Wireless Control Networks for Cyber-Physical Systems

HPCG on Tianhe2. Yutong Lu 1,Chao Yang 2, Yunfei Du 1

Servilla: Service Provisioning in Wireless Sensor Networks. Chenyang Lu

Real- Time Wireless Control Networks for Cyber- Physical Systems

Real-Time CORBA. Chenyang Lu CSE 520S

This Week on developerworks: Ruby, AIX, collaboration, BPM, Blogger API Episode date:

Case 1:18-cv TWP-MPB Document 1 Filed 01/04/18 Page 1 of 17 PageID #: 1

Wednesday, January 4, electronic components

Data Processing Development

BASED ON ALL TABLET OWNERS AND THOSE WHO HAVE TABLETS IN HH [N=2806]:

The optical memory card is a Write Once media, a written area cannot be overwritten. Information stored on an optical memory card is non-volatile.

Installation Instructions HM2085-PLM Strain Gage Input Module

OPEN SOURCE CRYPTOCURRENCY

Title Author Edition

Large Group Lesson. Introduction Video This teaching time will introduce the children to what they are learning for the day.

Case 5:18-cv Document 1 Filed 02/03/18 Page 1 of 27

Case 1:17-cv Document 1 Filed 12/11/17 Page 1 of 17 IN THE UNITED STATES DISTRICT COURT FOR THE WESTERN DISTRICT OF TEXAS AUSTIN DIVISION

UTAH LEGISLATIVE BILL WATCH

CS 5523 Operating Systems: Intro to Distributed Systems

FM Legacy Converter User Guide

5 SIMPLE STEPS TO A BETTER CHECKING ACCOUNT

Batch binary Edwards. D. J. Bernstein University of Illinois at Chicago NSF ITR

Model Act to Permit Continued Access by Law Enforcement to Wire & Electronic Communications

IBM Cognos Open Mic Cognos Analytics 11 Part nd June, IBM Corporation

LPGPU. Low- Power Parallel Compu1ng on GPUs. Ben Juurlink. Technische Universität Berlin. EPoPPEA workshop

New features in Oracle 11g for PL/SQL code tuning.

COMP 635: WIRELESS & MOBILE COMMUNICATIONS COURSE INTRODUCTION. Jasleen Kaur. Fall 2017

You Could Get Money From $44.95 Million in Settlements A Federal Court authorized this Notice. This is not a solicitation from a lawyer.

Compsci 290.3, Spring 2017 Software Design and Implementation: Mobile Landon Cox Owen Astrachan

DevOps Course Content

Geting happy ending from legit parlor. Site Tools. Search for. Translate site English to Spanish Go

Ø Project Description. Ø Design Criteria. Ø Design Overview. Ø Design Components. Ø Schedule. Ø Testing Criteria. Background Design Implementation

Review: Background on Bits. PFTD: What is Computer Science? Scale and Bits: Binary Digits. BIT: Binary Digit. Understanding scale, what does it mean?

Case 3:18-cv HZ Document 1 Filed 03/05/18 Page 1 of 30

Hardhats, Hippies, And Hawks: The Vietnam Antiwar Movement As Myth And Memory By Penny Lewis

ACME TOWNSHIP REGULAR BOARD MEETING ACME TOWNSHIP HALL 6042 Acme Road, Williamsburg MI Tuesday, December 4, 2018, 7:00 p.m.

Campaign Training: VoteBuilder Overview

May 2014 REPORT. Channel 2 Action News - #1 All Day, Every Day. Grew Each Newscast 4-7P Over 2013

The Hispanic Millennial Project

Using Technology to Improve Jury Service 39

3. APPROVAL OF MINUTES: a. March 4, 2015 (regular session)... 3

There s a Cloud in My Enterprise

Systems and methods for conducting jury research and training for estimating punitive damages

Agenda Administration Conference Room Tuesday, November 20, :00 p.m.

DOWNLOAD OR READ : UNITY GAME ENGINE MANUAL PDF EBOOK EPUB MOBI

Quality of Service in Optical Telecommunication Networks

Cadac SoundGrid I/O. User Guide

Link Attraction Factors

Going to court. A booklet for children and young people who are going to be witnesses at Crown, magistrates or youth court

ASK ALL: Q.1 Do you use any of the following social networking sites? [RANDOMIZE A-D FOLLOWED BY E-K, KEEP L LAST] Yes No No answer

Case 5:18-cv Document 1 Filed 01/03/18 Page 1 of 26

4th International Industrial Supercomputing Workshop Supercomputing for industry and SMEs in the Netherlands

Programming with Android: SDK install and initial setup. Dipartimento di Informatica: Scienza e Ingegneria Università di Bologna

By the time most find our footsteps, we ve created a NEW PATH. Coextruded Cryovac NewGen Laminates with New Surface Printing Technology

Deadlock. deadlock analysis - primitive processes, parallel composition, avoidance

Re: Amendment to the Online Marketing Strategy and Implementation RFP. RFP Ref: MCAN/COM/RFP/2B03002

Nanosecond Pulse Stimulation in the Ni-H 2 System

News English.com Ready-to-Use English Lessons by Sean Banville Level 5 Candy Crush Saga most downloaded app

Case 4:10-cv YGR Document Filed 06/17/16 Page 8 of 156

Case 3:18-cv HNJ Document 1 Filed 03/06/18 Page 1 of 14 UNITED STATES DISTRICT COURT FOR THE NORTHERN DISTRICT OF ALABAMA NORTHWESTERN DIVISION

NetTest A European Solution from Austria for measuring Broadband Quality SERENTSCHY.COM ADVISORY SERVICES GMBH

VHCoin WHITE PAPER. An Ethereum-based decentralized platform, an electronic encryption currency build to lead the fourth industrial revolution.

Trump Executive Order Travel Ban. CUNY Citizenship Now! Graduate Center March 16, 2017

valli ravindran th St, NW, #204, Washington, DC (202) /

Tackling Electrical System Efficiency, Safety and Reliability for pharmaceutical plants

Election Campaigner Through Android Application

THANKFUL TREE THANKFUL TREE

Note concerning the Patentability of Computer-Related Inventions

REPORT ON THE MACE CONGRESS 2015 COMPILED BY THE UNIZULU COMMUNICATIONS AND MARKETING DIVISION

Exploring QR Factorization on GPU for Quantum Monte Carlo Simulation

OC ACM Executive Committee June 2018 Meeting Agenda and Notes

Liveness: The Readers / Writers Problem

2008 Patently-O Patent Law Journal

Google App Engine 8/10/17. CS Cloud Compu5ng Systems--Summer II 2017

Voting Criteria April

The CIA World Factbook 2016 By Central Intelligence Agency READ ONLINE

How We Paid Our Student Loans [Kindle Edition] By Andrew Wood READ ONLINE

US MOBILE NEWS SEEKING TRENDS. Based on October September 2015 data. Excerpted from a full findings report delivered November 2015.

MINUTES WASHINGTON COUNTY BOARD OF COMMISSIONERS APRIL 28, 2015

Norfolk-Google Fiber to the Home

Transcription:

Operating Systems Chenyang Lu

Example: Linux Ø A Brief History: https://youtu.be/aurdhyl7bta Chenyang Lu 2

Android Source: h*p:// en.wikipedia.org/wiki/ File:Android-System- Architecture.svg Chenyang Lu 3

Killer App for Real-Time? Ø In 2001, about a year after I joined IBM, I got involved with the Sony-Toshiba-IBM initiative that's leading up to the Sony PlayStation 3. Of course, game systems have extremely severe real-time requirements. All the gaming systems I have seen recently offer sub-reflex response (and, yes, I do have three teenagers, so I have seen a few video games). Gamers will not put up with jerky response, so one-second response times just will not cut it; milliseconds rather than seconds are required. Ø So we are in the very interesting state where gaming and entertainment are major factors driving the technology. When was the last time you heard someone say, "Hey, I bought a new PC and Excel really runs a lot faster"? I used to hear that, back in the early '90s. Paul McKenney, IBM Linux Technology Center Shrinking slices: Looking at real time for Linux, PowerPC, and Cell Chenyang Lu 4

Basic Func=ons Ø OS controls resources: q who gets the CPU; q when I/O takes place; q how much memory is allocated; q power management Ø Application programs run on top of OS services Ø Challenge: manage multiple, concurrent tasks. Chenyang Lu 5

Example: Engine Control Concurrent tasks Ø spark control Ø crankshaft sensing Ø fuel/air mixture Ø oxygen sensor engine controller Chenyang Lu 6

POSIX (Portable Opera=ng System Interface) Ø IEEE standards for application portability between Unix variants. q IEEE 1003.1 defines a Unix-like OS interface. q IEEE 1003.2 defines the shell and utilities q IEEE 1003.4 defines real-time extensions. Ø Supported by many operating systems q Variants of UNIX: Linux, MacOS, AIX, HP-UX, Solaris q Many commercial RTOS Chenyang Lu 7

Process Ø A process is a unique execution of a program. q Several copies of a program may run simultaneously. Ø A process has its own context. q Data in registers, PC, status. q Stored in Process Control Block (PCB) Ø Thread: lightweight process q Threads share memory space in a same process. Ø OS manages processes and threads. Chenyang Lu 8

Context Switch process 1 process 2... PC registers CPU memory Chenyang Lu 9

Process States Ø A process can be in one of three states: q executing on the CPU; q ready to run; q waiting for data. executing gets CPU preempted needs data Scheduler ready gets data waiting Chenyang Lu 10

Process Management Ø OS keeps track of: q process priorities; q scheduling state; q process control block. Ø Processes may be created: q statically before system starts; q dynamically during execution. Ø OS controls context switches and what process runs. Chenyang Lu 11

Priority Scheduling Ø Every process has a priority. Ø CPU goes to the ready process with the highest priority. q Fixed vs. dynamic priority q Preemptive vs. non-preemptive Chenyang Lu 12

Preemp=ve Priority Scheduling Ø Each process has a fixed priority (1 highest); Ø P 1 : priority 1; P 2 : priority 2; P 3 : priority 3. P 3 released P 2 released P 1 released P2 P1 P2 P3 0 10 20 30 40 50 60 time Chenyang Lu 13

Preemp=ve Priority Scheduling Ø Most common real-time scheduling approach q Real-time POSIX q Real-time priorities in Linux q Most RTOS Ø Not the only possible way q Non-preemptive q Clock-driven scheduling q Reservation-based scheduling Chenyang Lu 14

Semaphores Ø OS primitive for controlling access to critical regions. q Get access to semaphore S with sem_wait(s). q Perform critical region operations. q Release semaphore with sem_post(s). Ø Mutex: only one process can hold a mutex at a time. Chenyang Lu 15

Supervisor Mode Ø The mode in which the OS usually runs. Ø Provide protective barriers between applications and OS. q Prevent applications from corrupting OS data. Ø Can do the following only in the supervisor mode q Access the kernel address space q Execute privileged instructions Example: Set real-time priority q Access special hardware Ø Careful with memory access when q programs run in supervisor mode q processor has no supervisor mode Chenyang Lu 16

Trap (SoNware Interrupt) Ø Enter supervisor mode. Ø Make system calls. q Open file, read from network Ø Example: ARM q Use SWI instruction to enter supervisor mode: SWI CODE_1 q Sets PC to 0x08. q Argument to SWI is passed to supervisor mode code. Chenyang Lu 17