What does an Operating System Do?

Slides:



Advertisements
Similar presentations
Threads, SMP, and Microkernels
Advertisements

Slide 2-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 2 Using the Operating System 2.
Threads, SMP, and Microkernels Chapter 4. Process Resource ownership - process is allocated a virtual address space to hold the process image Scheduling/execution-
Chapter 4 Threads, SMP, and Microkernels Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and Design.
Introduction to Operating Systems CS-2301 B-term Introduction to Operating Systems CS-2301, System Programming for Non-majors (Slides include materials.
Course Overview Introduction Computer System Structures
Cs238 Lecture 3 Operating System Structures Dr. Alan R. Davis.
Introduction Operating Systems’ Concepts and Structure Lecture 1 ~ Spring, 2008 ~ Spring, 2008TUCN. Operating Systems. Lecture 1.
CS4315A. Berrached:CMS:UHD1 Operating System Structures Chapter 3.
Slide 3-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 3 Operating System Organization.
Slide 3-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 3.
 Introduction Introduction  Definition of Operating System Definition of Operating System  Abstract View of OperatingSystem Abstract View of OperatingSystem.
Operating System A program that controls the execution of application programs An interface between applications and hardware 1.
UNIX System Administration OS Kernal Copyright 2002, Dr. Ken Hoganson All rights reserved. OS Kernel Concept Kernel or MicroKernel Concept: An OS architecture-design.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 2: System Structures.
1 COMPSCI 110 Operating Systems Who - Introductions How - Policies and Administrative Details Why - Objectives and Expectations What - Our Topic: Operating.
Introduction to Operating Systems Chapter 1. cs431 -cotter2 Lecture Objectives Understand the relationship between computing hardware, operating system,
Fall 2000M.B. Ibáñez Lecture 01 Introduction What is an Operating System? The Evolution of Operating Systems Course Outline.
Processes and Threads CS550 Operating Systems. Processes and Threads These exist only at execution time They have fast state changes -> in memory and.
Threads, SMP, and Microkernels Chapter 4. Process Resource ownership - process is allocated a virtual address space to hold the process image Scheduling/execution-
CE Operating Systems Lecture 3 Overview of OS functions and structure.
Slide 3-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 3.
Chapter 1: Introduction and History  Where does the operating system fit in a computing system?  What does the operating system achieve?  What are the.
OSes: 3. OS Structs 1 Operating Systems v Objectives –summarise OSes from several perspectives Certificate Program in Software Development CSE-TC and CSIM,
Operating Systems Lecture November 2015© Copyright Virtual University of Pakistan 2 Agenda for Today Review of previous lecture Hardware (I/O, memory,
Processes Introduction to Operating Systems: Module 3.
C o n f i d e n t i a l 1 Course: BCA Semester: III Subject Code : BC 0042 Subject Name: Operating Systems Unit number : 1 Unit Title: Overview of Operating.
1 Threads, SMP, and Microkernels Chapter Multithreading Operating system supports multiple threads of execution within a single process MS-DOS.
1: Operating Systems Overview 1 Jerry Breecher Fall, 2004 CLARK UNIVERSITY CS215 OPERATING SYSTEMS OVERVIEW.
1 Computer Systems II Introduction to Processes. 2 First Two Major Computer System Evolution Steps Led to the idea of multiprogramming (multiple concurrent.
CS4315A. Berrached:CMS:UHD1 Introduction to Operating Systems Chapter 1.
1 Threads, SMP, and Microkernels Chapter 4. 2 Process Resource ownership - process includes a virtual address space to hold the process image Scheduling/execution-
Threads, SMP and Microkernels Process vs. thread: –Unit of resource ownership (process has virtual address space, memory, I/O channels, files) –Unit of.
CSCI/CMPE 4334 Operating Systems Review: Exam 1 1.
1 Chapter 2: Operating-System Structures Services Interface provided to users & programmers –System calls (programmer access) –User level access to system.
S ALVATORE DI G IROLAMO (TA) Networks and Operating Systems: Exercise Session 1.
Chapter 2 Operating System Overview Dave Bremer Otago Polytechnic, N.Z. ©2008, Prentice Hall Operating Systems: Internals and Design Principles, 6/E William.
Introduction to Operating Systems Concepts
Computer System Structures
Introduction to Operating Systems
Chien-Chung Shen CIS/UD
COMPSCI 110 Operating Systems
Operating System Structure
CS490 Windows Internals Quiz 2 09/27/2013.
KERNEL ARCHITECTURE.
What is an Operating System?
Processes in Unix, Linux, and Windows
Introduction to Operating Systems
Threads, SMP, and Microkernels
Chapter 15, Exploring the Digital Domain
Chapter 2: System Structures
Chapter 3: Operating-System Structures
Mid Term review CSC345.
CGS 3763 Operating Systems Concepts Spring 2013
Lecture Topics: 11/1 General Operating System Concepts Processes
Lecture 4- Threads, SMP, and Microkernels
Chapter 2: Operating-System Structures
Operating Systems Lecture 3.
Chapter 1 Introduction to Operating System Part 2
Prof. Leonardo Mostarda University of Camerino
Operating Systems: A Modern Perspective, Chapter 3
Processes in Unix, Linux, and Windows
Processes in Unix and Windows
Chapter 2 Operating System Overview
Chapter 2: Operating-System Structures
Contact Information Office: 225 Neville Hall Office Hours: Monday and Wednesday 12:00-1:00 and by appointment. Phone:
Operating Systems Structure
Lecture Topics: 11/1 Hand back midterms
Introduction and History
In Today’s Class.. General Kernel Responsibilities Kernel Organization
Presentation transcript:

What does an Operating System Do? Manages Resources processes compete for CPU, memory, ... can’t leave sharing to individual programs (why?) protection Provides services Abstraction (hiding detail) e.g.: filestore, not disk drive (geometry, capacity, etc) variable size stack (hide memory shuffling, etc) reliable network connection (not sumchecks, retries) 01/01/2019 CS2051 Lecture 2

Processes Process: A program in execution Process != Program Why? (simplicity, speed; think of the real world!) eg, time-sharing, multiprogramming (!=multiprocessing) Thread: (process = thread + address space) sequence of instructions in a sequential execution context multithreading (what if two threads run a++ concurrently?) process & thread? multiple threads per address space more later on! See Bacon, Chapter 4. 01/01/2019 CS2051 Lecture 2

Example a.out 7 results in 7 - 0X80495a8 Int x; main(int argc, char *argv[]) { x=atoi(argv[1]); while (1) printf(“%d - 0X%x \n”, x, &x); } a.out 7 results in 7 - 0X80495a8 Different programs have the illusion that they use the same address! 01/01/2019 CS2051 Lecture 2

OS provides “Virtual Machine” More convenient abstraction than real machine (cf. with Java Virtual Machine) User Application Filestore CPU Network 4 Gbyte memory Yahoo.com User Application Filestore CPU Network 4 Gbyte memory Yahoo.com User Application Filestore CPU Network 4 Gbyte memory Yahoo.com User Application Network 4 Gbyte memory Filestore CPU 01/01/2019 CS2051 Lecture 2 Yahoo.com

Virtual Machine enforces Protection System against Program Buggy (or malicious?) program cannot prejudice OS Program against Program Buggy program cannot interfere with other program what if: while(1) fork(); 01/01/2019 CS2051 Lecture 2

OS Services Provided E.g. User types “run myprog” (“% myprog” in Unix) Read command (command interpreter - shell in Unix) Find program file (how big?) Allocate memory Read file into memory Find libraries Start myprog running Finish “clearly” 01/01/2019 CS2051 Lecture 2

Privileged Operations OS/Hardware prevent unprivileged software from directly accessing facilities which may affect more than one program file operations disk I/O memory allocation CPU allocation Network operations 01/01/2019 CS2051 Lecture 2

Network Device Manager OS Structure Application Operating System File Manager Memory Manager Process Manager Network Manager Device Manager Network Device Manager 01/01/2019 CS2051 Lecture 2

System Calls vs System Programs Interface between a running program and the OS. Eg: read(int fd, char *buf, int num_bytes); not to be confused with the library function: fread(void *ptr, size_t size, size_t n, FILE *stream); not all languages allow system calls to be made directly System programs provide a convenient environment for program development/execution (eg, file manipulation, status, etc…); most users’ view of the OS! 01/01/2019 CS2051 Lecture 2

Don’t always need all modules... e.g. Network Gateway Network B Network A Gateway 01/01/2019 CS2051 Lecture 2

But… Big OS Kernels have problems... Microkernels Size: (1.8Mb for Sun; 1.2Mb for Linux) Internal Complexity Debugging Microkernels tailored for special-purpose applications easier to maintain, tune, debug mK and services real-time(?) 01/01/2019 CS2051 Lecture 2

In Summary... Operating System Components: Process Management Memory Management File Management I/O Management Secondary Storage Management Network Management Command Interpreter/GUI Protection Read Bacon, 2.1-2.5; try the exercises at the end of the chapter. 01/01/2019 CS2051 Lecture 2