Chapter 3: Operating Systems

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.
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.
Operating Systems: Software in the Background
Chapter 11 Operating Systems
©Brooks/Cole, 2003 Chapter 7 Operating Systems Dr. Barnawi.
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.
©Brooks/Cole, 2003 Chapter 7 Operating Systems. ©Brooks/Cole, 2003 Define the purpose and functions of an operating system. Understand the components.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3: Operating Systems Computer Science: An Overview Tenth Edition.
Operating Systems TexPREP Summer Camp Computer Science.
Chapter 7 Operating Systems. Define the purpose and functions of an operating system. Understand the components of an operating system. Understand the.
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 
OPERATING SYSTEMS - I. What is an Operating System OS is a program that manages the computer hardware It provides a basis for application programs and.
Chapter 3 Operating Systems © 2007 Pearson Addison-Wesley. All rights reserved.
Operating Systems © 2007 Pearson Addison-Wesley. All rights reserved.
Chapter 3: Operating Systems
Chapter 3 Operating Systems. © 2005 Pearson Addison-Wesley. All rights reserved 3-2 Chapter 3 Operating Systems 3.1 The Evolution of Operating Systems.
Chapter 7 Operating Systems Foundations of Computer Science  Cengage Learning 1.
7.1 Operating Systems. 7.2 A computer is a system composed of two major components: hardware and software. Computer hardware is the physical equipment.
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.
Copyright © 2003 by Prentice Hall 1 Computers: Tools for an Information Age Chapter 3 Operating Systems: Software in the Background BSM025 Computers.
Multiprogramming. Readings r Chapter 2.1 of the textbook.
Introduction to Operating Systems
Operating System Review
Chapter 8: Main Memory.
Chapter 3: Operating Systems
Process Management Process Concept Why only the global variables?
Computer Software.
Chapter 4 – Introduction to Operating System Concepts
An Introduction to Operating Systems
IS310 Hardware & Network Infrastructure Ronny L
TexPREP Summer Camp Computer Science
Virtual Memory Networks and Communication Department.
7 Operating system Foundations of Computer Science ã Cengage Learning.
Chapter 3: Operating Systems
Operating System Review
Shell & Kernel Concepts in Operating System
Operating System Architecture OS
Operating Systems.
OS Architecture.
Operating System Review
Process Description and Control
Chapter 3 Operating Systems
Operating Systems Lecture 1.
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
Software - Operating Systems
Necessary Background for OS
Presentation transcript:

Chapter 3: Operating Systems Computer Science: An Overview Tenth Edition by J. Glenn Brookshear Modified by Marie desJardins for UMBC’s CMSC 100, Fall 2009

Operating System Functions Oversee operation of computer Process management: Schedule programs for execution Coordinate the execution of programs Memory management: Store and retrieve files

Operating System Overview

Operating System Components Shell: Communicates with users Text based Graphical user interface (GUI) Kernel: Performs basic required functions File manager Device drivers Memory manager Scheduler and dispatcher

Figure 3.4 The shell as an interface between users and the operating system

Types of Software Application software System software Performs specific tasks for users System software Provides infrastructure for application software Consists of operating system and utility software

Figure 3.3 Software classification

Getting it Started (Bootstrapping) Bootstrap: Program in ROM (example of firmware) Run by the CPU when power is turned on Transfers operating system from mass storage to main memory Executes jump to operating system

Figure 3.5 The booting process

Process Management

Processes Process: The activity of executing a program Process State: Current status of the activity Program counter General purpose registers Related portion of main memory

Evolution of Shared Computing Batch processing Interactive processing Requires real-time processing Time-sharing/Multitasking Implemented by Multiprogramming Multiprocessor machines

Figure 3.1 Batch processing

Figure 3.2 Interactive processing

Scheduling (Queuing) Schemes Multi-server / single-server Multi-queue / single-queue FIFO / LIFO / priority-based What are some real-world examples of each combination?

Example: Batch Job Scheduler When is each job processed if they are handled by a: LIFO queue? FIFO queue? Priority-based queue?

Process Administration for Multitasking 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. Talk about scheduling/queueing schemes: {multi-server, single-server}, {multi-queue, single-queue}, {FIFO/LIFO/priority-based} - put a chart on the board and see how many we can fill in with real examples

Figure 3.6 Time-sharing between process A and process B

Handling Competition for Resources Semaphore: A “control flag” Critical Region: A group of instructions that should be executed by only one process at a time Mutual exclusion: Requirement for proper implementation of a critical region

Deadlock Processes block each other from continuing Conditions required for deadlock 1. Competition for non-sharable resources 2. Resources requested on a partial basis 3. An allocated resource can not be forcibly retrieved Show deadlock situation as a graph

Figure 3.7 A deadlock resulting from competition for nonshareable railroad intersections

Memory Management

File Manager Directory (or Folder): A user-created bundle of files and other directories (subdirectories) Directory Path: A sequence of directories within directories Point out that files aren’t *physically* inside directories “Directory” in Windows is what you see as a “folder” A “folder” or “directory” is just a list of files that it contains (plus a “pointer” or reference to the directory that it is inside) The top-level directory is called the “root” Talk about how file space is allocated/deallocated, and how that leads to fragmentation; what defragmentation does and why it speeds up your machine

Memory Manager Allocates space in main memory May create the illusion that the machine has more memory than it actually does (virtual memory) by playing a “shell game” in which blocks of data (pages) are shifted back and forth between main memory and mass storage

Challenges in Memory Management Fragmentation Files are ideally represented as contiguous blocks of memory on the disk Arrays need to be represented as contiguous blocks of memory in RAM Over time, memory becomes “fragmented,” leaving few large contiguous blocks The result is that large files have to be stored in many small pieces, which means that retrieval becomes expensive Defragmentation Good system managers periodically run “defragmentation” tools, which reorganize disk space to leave fewer holes and to make large files contiguous