CS 346 – Chapter 1 Operating system – definition Responsibilities What we find in computer systems Review of –Instruction execution –Compile – link – load.

Slides:



Advertisements
Similar presentations
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3: Operating Systems Computer Science: An Overview Tenth Edition.
Advertisements

Computer System Organization Computer-system operation – One or more CPUs, device controllers connect through common bus providing access to shared memory.
CS 101 – Oct. 26 Operating Systems (Chapter 10) –Ultimate program –Intimate with the hardware –Responsibilities… –Examples.
CS4315A. Berrached:CMS:UHD1 Operating Systems and Computer Organization Chapter 4.
CMPT 300: Operating Systems I Dr. Mohamed Hefeeda
Operating Systems High Level View Chapter 1,2. Who is the User? End Users Application Programmers System Programmers Administrators.
1 School of Computing Science Simon Fraser University CMPT 300: Operating Systems I Dr. Mohamed Hefeeda.
Operating Systems Concepts Professor Rick Han Department of Computer Science University of Colorado at Boulder.
Figure 1.1 Interaction between applications and the operating system.
Cs238 Lecture 3 Operating System Structures Dr. Alan R. Davis.
1 Introduction Chapter What is an operating system 1.2 History of operating systems 1.3 The operating system zoo 1.4 Computer hardware review 1.5.
Chapter 1: Introduction
Lecture 1: Introduction CS170 Spring 2015 Chapter 1, the text book. T. Yang.
Introduction Operating Systems’ Concepts and Structure Lecture 1 ~ Spring, 2008 ~ Spring, 2008TUCN. Operating Systems. Lecture 1.
1 What is an operating system? CSC330Patricia Van Hise.
1 OS & Computer Architecture Modern OS Functionality (brief review) Architecture Basics Hardware Support for OS Features.
What do operating systems do? manage processes manage memory and computer resources provide security features execute user programs make solving user.
Chapter 1: Introduction. 1.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts What is an Operating System? A program that acts as an intermediary.
Chapter 3 Operating Systems Introduction to CS 1 st Semester, 2015 Sanghyun Park.
Computer Organization
Objectives To provide a grand tour of the major operating systems components To provide coverage of basic computer system organization.
CS 346 – Chapter 8 Main memory –Addressing –Swapping –Allocation and fragmentation –Paging –Segmentation Commitment –Please finish chapter 8.
1 COMPSCI 110 Operating Systems Who - Introductions How - Policies and Administrative Details Why - Objectives and Expectations What - Our Topic: Operating.
CS 1308 Computer Literacy and the Internet. Introduction  Von Neumann computer  “Naked machine”  Hardware without any helpful user-oriented features.
OS provide a user-friendly environment and manage resources of the computer system. Operating systems manage: –Processes –Memory –Storage –I/O subsystem.
Recall: Three I/O Methods Synchronous: Wait for I/O operation to complete. Asynchronous: Post I/O request and switch to other work. DMA (Direct Memory.
OPERATING SYSTEMS Goals of the course Definitions of operating systems Operating system goals What is not an operating system Computer architecture O/S.
CIS250 OPERATING SYSTEMS Memory Management Since we share memory, we need to manage it Memory manager only sees the address A program counter value indicates.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 3: Operating-System Structures System Components Operating System Services.
CE Operating Systems Lecture 3 Overview of OS functions and structure.
Lecture 8 February 29, Topics Questions about Exercise 4, due Thursday? Object Based Programming (Chapter 8) –Basic Principles –Methods –Fields.
Computers Operating System Essentials. Operating Systems PROGRAM HARDWARE OPERATING SYSTEM.
Chapter 1: Introduction and History  Where does the operating system fit in a computing system?  What does the operating system achieve?  What are the.
Processes Introduction to Operating Systems: Module 3.
Chapter 3: Operating Systems
CS 346 – Chapter 2 OS services –OS user interface –System calls –System programs How to make an OS –Implementation –Structure –Virtual machines Commitment.
Operating System Structure A key concept of operating systems is multiprogramming. –Goal of multiprogramming is to efficiently utilize all of the computing.
We will focus on operating system concepts What does it do? How is it implemented? Apply to Windows, Linux, Unix, Solaris, Mac OS X. Will discuss differences.
1 Computer Systems II Introduction to Processes. 2 First Two Major Computer System Evolution Steps Led to the idea of multiprogramming (multiple concurrent.
CS 1308 Computer Literacy and the Internet. Objectives In this chapter, you will learn about:  The components of a computer system  Putting all the.
CIS250 OPERATING SYSTEMS Chapter One Introduction.
CS4315A. Berrached:CMS:UHD1 Operating Systems and Computer Organization Chapter 4.
CS4315A. Berrached:CMS:UHD1 Introduction to Operating Systems Chapter 1.
Interrupts and Exception Handling. Execution We are quite aware of the Fetch, Execute process of the control unit of the CPU –Fetch and instruction as.
Operating System (Reference : OS[Silberschatz] + Norton 6e book slides)
1 Chapter 2: Operating-System Structures Services Interface provided to users & programmers –System calls (programmer access) –User level access to system.
Chapter 1: Introduction Narzu Tarannum(NAT) Reff: BIS.
Operating System Concepts with Java – 7 th Edition, Nov 15, 2006 Silberschatz, Galvin and Gagne ©2007 Chapter 0: Historical Overview.
1 OPERATING SYSTEMS. 2 CONTENTS 1.What is an Operating System? 2.OS Functions 3.OS Services 4.Structure of OS 5.Evolution of OS.
Chapter 1: Introduction. 1.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Objectives To provide a grand tour of the major operating.
CSCE451/851 Introduction to Operating Systems
Introduction to Operating Systems Concepts
Credits: 3 CIE: 50 Marks SEE:100 Marks Lab: Embedded and IOT Lab
Chapter 2: System Structures
Computer System Structures
Lecture 1 Runtime environments.
Welcome to OS Class!.
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Intro (excerpt)
What is an Operating System?
Functions of an operating system
Lecture Topics: 11/1 General Operating System Concepts Processes
Chapter 2: Operating-System Structures
Introduction to Operating Systems
Lecture 1 Runtime environments.
Chapter 2: Operating-System Structures
Chapter 1: Introduction CSS503 Systems Programming
CS 111 – Sept. 20 Operating Systems Commitment: definition origin
Presentation transcript:

CS 346 – Chapter 1 Operating system – definition Responsibilities What we find in computer systems Review of –Instruction execution –Compile – link – load – execute Kernel versus user mode

Questions What is the purpose of a computer? What if all computers became fried or infected? How did Furman function before 1967 (the year we bought our first computer)? Why do people not like computers?

Definition How do you define something? Possible approaches: –What it consists of –What is does (a functional definition) – purpose –What if we didn’t have it –What else it’s similar to OS = set of software between user and HW –Provides “environment” for user to work –Convenience and efficiency –Manage the HW / resources –Ensure correct and appropriate operation of machine 2 Kinds of software: application and system –Distinction is blurry; no universal definition for “system”

Some responsibilities Can glean from table of contents –Book compares an OS to a government –Don’t worry about details for now Security: logins Manage resources –Correct and efficient use of CPU –Disk: “memory management” –network access File management I/O, terminal, devices Kernel vs. shell

Big picture Computer system has: CPU, main memory, disk, I/O devices Turn on computer: –Bootstrap program already in ROM comes to life –Tells where to find the OS on disk. Load the OS. –Transfer control to OS once loaded. From time to time, control is “interrupted” –Examples? Memory hierarchy –Several levels of memory in use from registers to tape –Closer to CPU: smaller, faster, more expensive –OS must decide who belongs where

Big picture (2) von Neumann program execution –Fetch, decode, execute, data access, write result –OS usually not involved unless problem Compiling –1 source file  1 object file –1 entire program  1 executable file –“link” object files to produce executable –Code may be optimized to please the OS –When you invoke a program, OS calls a “loader” program that precedes execution I/O –Each device has a controller, a circuit containing registers and a memory buffer –Each controller is managed by a device driver (software)

2 modes When CPU executing instructions, nice to know if the instruction is on behalf of the OS OS should have the highest privileges  kernel mode –Some operations only available to OS –Examples? Users should have some restriction  user mode A hardware bit can be set if program is running in kernel mode Sometimes, the user needs OS to help out, so we perform a system call

Management topics What did we ask the OS to do during lab? File system Program vs. process –“job” and “task” are synonyms of process –Starting, destroying processes –Process communication –Make sure 2 processes don’t interfere with each other Multiprogramming –CPU should never be idle –Multitasking: give each job a short quantum of time to take turns –If a job needs I/O, give CPU to another job

More topics Scheduling: deciding the order to do the jobs –Detect system “load” –In a real-time system, jobs have deadlines. OS should know worst-case execution time of jobs Memory hierarchy –Higher levels “bank” the lower levels –OS manages RAM/disk decision –Virtual memory: actual size of RAM is invisible to user. Allow programmer to think memory is huge –Allocate and deallocate heap objects –Schedule disk ops and backups of data