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

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

Operating System.
Chapter 6 Review System Software: Operating Systems and Utilities.
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.
Operating Systems: Software in the Background
Understanding Operating Systems 1 Overview Introduction Operating System Components Machine Hardware Types of Operating Systems Brief History of Operating.
Operating Systems BTEC IT Practitioners.
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
SOFTWARE.
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.
Operating Systems What do you have left on your computer after you strip away all of the games and application programs you bought and installed? Name.
Lecture 14: Operating Systems Intro to IT COSC1078 Introduction to Information Technology Lecture 14 Operating Systems James Harland
Operating System. Architecture of Computer System Hardware Operating System (OS) Programming Language (e.g. PASCAL) Application Programs (e.g. WORD, EXCEL)
Introduction and Overview Questions answered in this lecture: What is an operating system? How have operating systems evolved? Why study operating systems?
Operating Systems.
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3: Operating Systems Computer Science: An Overview Eleventh Edition.
Part one. overview  Operating system is the software that controls the overall operation of a computer.  It provide the interface by which a user can.
CS 1308 Computer Literacy and the Internet. Introduction  Von Neumann computer  “Naked machine”  Hardware without any helpful user-oriented features.
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 TexPREP Summer Camp Computer Science.
INVITATION TO COMPUTER SCIENCE, JAVA VERSION, THIRD EDITION Chapter 6: An Introduction to System Software and Virtual Machines.
OPERATING SYSTEMS Lecture 3: we will explore the role of the operating system in a computer Networks and Communication Department 1.
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 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.
Operating systems Part one Introduction to computer, 2nd semester, 2010/2011 Mr.Nael Aburas Faculty of Information.
CMSC 104, Lecture 031 Operating Systems I An Introduction to Operating System Concepts.
Chapter 3 Operating Systems. © 2005 Pearson Addison-Wesley. All rights reserved 3-2 Chapter 3 Operating Systems 3.1 The Evolution of Operating Systems.
CS4315A. Berrached:CMS:UHD1 Introduction to Operating Systems Chapter 1.
Operating Systems (Credit to: Rick Graziani of Cabrillo College)
Operating Systems Salihu Ibrahim Dasuki (PhD) CSC102 INTRODUCTION TO COMPUTER SCIENCE.
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.
TECHNOLOGY IN ACTION. Chapter 5 System Software: The Operating System, Utility Programs, and File Management.
Introduction to Operating Systems
Chapter 3: Operating Systems
Definitions, intro, history
Operating System.
An Introduction to Operating Systems
THE OPERATION SYSTEM The need for an operating system
Introduction to Operating System (OS)
TexPREP Summer Camp Computer Science
Chapter 3: Operating Systems
Shell & Kernel Concepts in Operating System
Operating System Architecture OS
OS Architecture.
The Operating system Gives life to the hardware
Chapter 3 Operating Systems
Chapter 3: Operating Systems
Chapter 3: Operating Systems
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
Software - Operating Systems
Chapter 3: Operating Systems
Presentation transcript:

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3: Operating Systems Computer Science: An Overview Tenth Edition by J. Glenn Brookshear

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 3-2 Chapter 3: Operating Systems 3.1 The History of Operating Systems 3.2 Operating System Architecture 3.3 Coordinating the Machine’s Activities

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 3-3 Functions of Operating Systems Coordinate a computer’s internal activities –Schedule programs for execution –Coordinate the execution of programs –Store and retrieve files – etc.. Oversee operation of computer with outside world

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Examples of Operating Systems Windows (Microsoft) UNIX Mac OS Solaris Linux 3-4

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 3-5 Evolution of Shared Computing 1.Batch processing –No interaction during the execution of programs 2.Interactive processing –Requires real-time processing 3.Time-sharing/Multitasking –Implemented by Multiprogramming 4.Multiprocessor machines

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 3-6 Figure 3.1 Batch processing No interaction during the execution of programs Computer operator Job queues ( FIFO, Priority)

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 3-7 Figure 3.2 Interactive processing Interaction by real time processing What happens if there are several users?

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Time-sharing/Multitasking Multiple users  Time sharing Time sharing may be implemented by multiprogramming (divide time into intervals) Time sharing systems enable acceptable real-time processing to as many as 30 users simultaneously 3-8

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Time-sharing/Multitasking Multitasking: One user executes numerous tasks simultaneously Multi processor systems provide time- sharing/multitasking by assigning different tasks to different processors –Load balancing (Efficient usage of processors) –Scaling (Breaking tasks into several pieces to assign them in different processors) 3-9

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 3-10 Types of Software Application software –Performs specific tasks for users –Examples: Spreadsheets, Word Processors, Database systems, etc. System software –Provides infrastructure for application software –Two categories of system software: –operating system (OS) –utility software (such as software to format a magnetic disk, to compress/decompress data; disk fragmenters, screen savers, etc.)

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 3-11 Figure 3.3 Software classification

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 3-12 Figure 3.4 The shell as an interface between users and the operating system

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 3-13 Operating System Components Shell: Communicates with users –Text based –Graphical user interface (GUI)  window manager Kernel: Internal part of OS which performs basic required functions –File manager –Device drivers –Memory manager –Scheduler and dispatcher

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 3-14 Kernel : File Manager Coordinates the use of the machine’s mass storage facilities Maintains records of all files, including their locations access rights of different users. Directory (or Folder): A user-created bundle of files and other directories (subdirectories) Directory Path: A sequence of directories within directories (eg. animals/prehistoric/dinosaurs)

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 3-15 Kernel : Device Driver Communicates with the controllers/perpheral devices to carry out operations in peripheral devices. Each device driver is designed uniquely for its particular type of device

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 3-16 Kernel : Memory Manager Allocates space in main memory The duty of memory manager is extensive in multitasking or multi user environments What happens if main memory space required exceeds the space actually available computer ? Virtual memory : Storage space on your computer's hard disk that OS uses in conjunction with main memory.

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 3-17 Kernel : Scheduler and Dispatcher Scheduler : In multiprogramming systems (multiple users), it determines which activities are to be considered for execution Dispatcher: Controls the allocation of time to activities in multiprogramming systems

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 3-18 Getting it Started (Bootstrapping) ROM (Read Only Memory): A small portion of main memory which has non-volatile memory cells Firmware: A program stored in ROM Bootstrap: Program in ROM (example of firmware) –Run by the CPU when power is turned on –Directs CPU to transfer OS from mass storage to main memory –Directs CPU to execute jump to OS

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 3-19 Getting it Started (Bootstrapping) Why computers systems are not provided with enough ROM to hold the entire OS?? ANSWER: Not efficient with today’s technology Turnkey systems: Systems which are ready to function with the flip of a switch or turn of a key.

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 3-20 Figure 3.5 The booting process BIOS (Basic-Input-Output-System): A collection of software routines stored in ROM for performing fundamental input/output operations which are used by bootstrap to perform I/O activities before OS becomes functional

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 3-21 Processes Process: The activity of executing a program Process State: Current status of the activity Process state contains –The value of program counter –The values in general purpose registers –The values of related portion of main memory

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 3-22 Process Administration Scheduler: Adds new processes to the process table and removes completed processes from the process table Dispatcher: Controls the allocation of time slices to the processes in the process table –The end of a time slice is signaled by an interrupt.

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 3-23 Figure 3.6 Time-sharing between process A and process B Process switch(context switch): Changing from one process to another Interrupt: Signal generated by dispatcher to indicate the end of the slice Interrupt handler: A part of dispatcher which describes how the dispatcher should respond to the interrupt signal