Chapter 3 Operating Systems. © 2005 Pearson Addison-Wesley. All rights reserved 3-2 Chapter 3 Operating Systems 3.1 The Evolution of Operating Systems.

Slides:



Advertisements
Similar presentations
Threads, SMP, and Microkernels
Advertisements

CSC 360- Instructor: K. Wu Overview of Operating Systems.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3: Operating Systems Computer Science: An Overview Tenth Edition.
Operating System.
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.
Chapter 3 Process Description and Control
1. 2 The Evolution of Operating Systems : §The single processing machines of 1940’s and 1950’s were not very flexible or efficient. §The processing is.
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 3 Operating Systems. Chapter 3 Operating Systems 3.1 The Evolution of Operating Systems 3.1 The Evolution of Operating Systems 3.2 Operating System.
CSCE101 – Ch 3 September 14 & 16, Chapter 3 Computer Software = System Software + Application Software Delineation unclear – (ex. Microsoft Antitrust)
OS Fall ’ 02 Introduction Operating Systems Fall 2002.
OS Spring’03 Introduction Operating Systems Spring 2003.
Chapter 11 Operating Systems
Operating Systems CS208. What is Operating System? It is a program. It is the first piece of software to run after the system boots. It coordinates the.
1 Operating Systems Ch An Overview. Architecture of Computer Hardware and Systems Software Irv Englander, John Wiley, Bare Bones Computer.
Operating system Part three Introduction to computer, 2nd semester, 2010/2011 Mr.Nael Aburas Faculty of Information.
Chapter 3 Operating Systems. 2 Chapter 3 Operating Systems 3.1 The Evolution of Operating Systems 3.2 Operating System Architecture 3.3 Coordinating the.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3: Operating Systems Computer Science: An Overview Tenth Edition.
Part two. 3.2 operating system architecture  Software have two categories  Application software  System software  Application software: consists of.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3: Operating Systems Computer Science: An Overview Tenth Edition.
Introduction to Operating Systems
Operating system Part two Introduction to computer, 2nd semester, 2010/2011 Mr.Nael Aburas Faculty of Information.
Chapter 3 Operating Systems Introduction to CS 1 st Semester, 2015 Sanghyun Park.
Part II: Software In part II, we focus on topics associated with software. In particular, we will investigate the discovery, representation, and communication.
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3: Operating Systems Computer Science: An Overview Eleventh Edition.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3: Operating Systems Computer Science: An Overview Tenth Edition.
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.
Invitation to Computer Science 5 th Edition Chapter 6 An Introduction to System Software and Virtual Machine s.
Lecture 3 Process Concepts. What is a Process? A process is the dynamic execution context of an executing program. Several processes may run concurrently,
E X C E E D I N G E X P E C T A T I O N S OP SYS Linux System Administration Dr. Hoganson Kennesaw State University Operating Systems Functions of an operating.
Computers Operating System Essentials. Operating Systems PROGRAM HARDWARE OPERATING SYSTEM.
Lecture 8: 9/19/2002CS149D Fall CS149D Elements of Computer Science Ayman Abdel-Hamid Department of Computer Science Old Dominion University Lecture.
1 Sec (3.2) Operating System Architecture OS. 2 Software dividing into two categories: 1. Application software 2. System Software  Operating System 
Chapter 3 Operating Systems © 2007 Pearson Addison-Wesley. All rights reserved.
Operating Systems © 2007 Pearson Addison-Wesley. All rights reserved.
Chapter 3: Operating Systems
Operating System Principles And Multitasking
Computer Science/Ch.3 Data Manipulation 3-1 Chapter 3 Data Manipulation.
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.
CS4315A. Berrached:CMS:UHD1 Introduction to Operating Systems Chapter 1.
OPERATING SYSTEM REVIEW. System Software The programs that control and maintain the operation of the computer and its devices The two parts of system.
CSCI/CMPE 4334 Operating Systems Review: Exam 1 1.
CT101: Computing Systems Introduction to Operating Systems.
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.
1.1 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Chapter 1: Introduction What Operating Systems Do √ Computer-System Organization.
Introduction to Operating Systems
Chapter 3: Operating Systems
Chapter 4 – Introduction to Operating System Concepts
An Introduction to Operating Systems
Introduction to Operating System (OS)
IS310 Hardware & Network Infrastructure Ronny L
Chapter 3: Operating Systems
Shell & Kernel Concepts in Operating System
Operating System Architecture OS
Chapter 15, Exploring the Digital Domain
Operating Systems.
Chapter 3 Operating Systems
Chapter 3: Operating Systems
Chapter 3: Operating Systems
February 5, 2004 Adrienne Noble
CS149D Elements of Computer Science
Introduction to Operating Systems
Chapter 3: Operating Systems
Chapter 3: Operating Systems Computer Science: An Overview
Chapter 3: Operating Systems
Chapter 3: Operating Systems
Presentation transcript:

Chapter 3 Operating Systems

© 2005 Pearson Addison-Wesley. All rights reserved 3-2 Chapter 3 Operating Systems 3.1 The Evolution of Operating Systems 3.2 Operating System Architecture 3.3 Coordinating the Machine’s Activities 3.4 Handling Competition Among Processes 3.5 Security

© 2005 Pearson Addison-Wesley. All rights reserved 3-3 Some functions of an operating system Oversee operation of computer Store and retrieve files Schedule programs for execution Execute programs

© 2005 Pearson Addison-Wesley. All rights reserved 3-4 Evolution of shared computing Batch processing Job queue Time-sharing –Multi-tasking: multiple tasks for a single user –Interactive processing –Real-time processing Scheduling multiprocessor machines

© 2005 Pearson Addison-Wesley. All rights reserved 3-5 Figure 3.1 Batch processing

© 2005 Pearson Addison-Wesley. All rights reserved 3-6 Figure 3.2 Interactive processing

© 2005 Pearson Addison-Wesley. All rights reserved 3-7 Types of software Application software –perform specific tasks for users System software –perform tasks needed by all computer systems –Operating system –Utility software

© 2005 Pearson Addison-Wesley. All rights reserved 3-8 Figure 3.3 Software classification

© 2005 Pearson Addison-Wesley. All rights reserved 3-9 Components of an operating system Shell: portion that communicates with users –Graphical user interface (GUI) Window manager Kernel: contains components performing basic required functions –File manager –Device drivers –Memory manager –Scheduler and dispatcher

© 2005 Pearson Addison-Wesley. All rights reserved 3-10 Figure 3.4 The shell as an interface between users and the operating system

© 2005 Pearson Addison-Wesley. All rights reserved 3-11 File Manager Directory or folder: user-created group or bundle of files Path: position of a file in directory hierarchy File descriptor: information needed to access an open file

© 2005 Pearson Addison-Wesley. All rights reserved 3-12 Memory manager Page: unit of memory managed (a few kilobytes) Virtual memory: illusionary memory space –Created by shuffling units of data, called pages, between actual main memory space and mass storage

© 2005 Pearson Addison-Wesley. All rights reserved 3-13 Getting it started (bootstrapping) Bootstrap: program in read only memory (ROM) –Run by the CPU when power is turned on –Transfers operating system from mass storage to main memory –Executes jump to operating system

© 2005 Pearson Addison-Wesley. All rights reserved 3-14 Figure 3.5 The booting process

© 2005 Pearson Addison-Wesley. All rights reserved 3-15 Processes Program = a static set of directions Process = the activity of executing a program Process state = current status of the activity –Snapshot of relevant parts of the machine state –Program counter, other registers, associated main memory

© 2005 Pearson Addison-Wesley. All rights reserved 3-16 Process administration Scheduler –Keeps state of all processes in an process table Ready or waiting Priority Non-scheduling information: memory pages, etc.

© 2005 Pearson Addison-Wesley. All rights reserved 3-17 Process administration (continued) Dispatcher –Gives one time slice or quantum to a process that is ready –Executes a process switch (or context switch) when the running process’s time slice is over Interrupt indicates that time slice is over Interrupt handler: part of dispatcher

© 2005 Pearson Addison-Wesley. All rights reserved 3-18 Figure 3.6 Time-sharing between process A and process B

© 2005 Pearson Addison-Wesley. All rights reserved 3-19 Handling competition for a resource Semaphore = a control flag telling if resource is in use –Test and set must be done together for proper function Critical region = sequence of instructions that should be executed by only one process at a time –Usually protected by a semaphore Mutual exclusion = requirement for proper implementation of a critical region

© 2005 Pearson Addison-Wesley. All rights reserved 3-20 Deadlock Two processes block each other from continuing Conditions that lead to deadlock 1. Competition for non-sharable resources 2. At least two resources are needed by both processes 3. An allocated resource can not be forcibly retrieved

© 2005 Pearson Addison-Wesley. All rights reserved 3-21 Figure 3.7 A deadlock resulting from competition for nonshareable railroad intersections

© 2005 Pearson Addison-Wesley. All rights reserved 3-22 Spooling Postpone requested operation until a later time –Makes a non-shareable resource appear shareable Technique of deadlock avoidance

© 2005 Pearson Addison-Wesley. All rights reserved 3-23 Security from outside attacks Most common protection: require user name and password –Problem: password stealing –Problem: automated password guessers –Countermeasures: Always tell user when he/she last logged in Report repeated bad guesses Log the guesser into a captive account to spy on the guesser

© 2005 Pearson Addison-Wesley. All rights reserved 3-24 Security from attacks from within Operating system prevents illegal access to resources –Different memory for different processes –Privileged instructions only allowed in kernel –All file access passes through the kernel –Other devices can only be accessed through the kernel