Operating Systems.

Slides:



Advertisements
Similar presentations
7 Operating Systems Foundations of Computer Science ã Cengage Learning.
Advertisements

Chapter 10 Operating Systems.
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.
Dr Mohamed Menacer College of Computer Science and Engineering Taibah University CS-334: Computer.
Operating Systems: Software in the Background
©Brooks/Cole, 2003 Chapter 7 Operating Systems. ©Brooks/Cole, 2003 Define the purpose and functions of an operating system. Understand the components.
Chapter 11 Operating Systems
©Brooks/Cole, 2003 Chapter 7 Operating Systems Dr. Barnawi.
Computer Organization and Architecture
CS364 CH08 Operating System Support TECH Computer Science Operating System Overview Scheduling Memory Management Pentium II and PowerPC Memory Management.
Layers and Views of a Computer System Operating System Services Program creation Program execution Access to I/O devices Controlled access to files System.
Chapter 3 Memory Management: Virtual Memory
Operating systems CHAPTER 7.
Operating System A program that controls the execution of application programs An interface between applications and hardware 1.
Operating Systems.
The Operating Systems Layer
©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.
Chapter 5 Operating System Support. Outline Operating system - Objective and function - types of OS Scheduling - Long term scheduling - Medium term scheduling.
CS 153 Design of Operating Systems Spring 2015 Lecture 11: Scheduling & Deadlock.
INVITATION TO COMPUTER SCIENCE, JAVA VERSION, THIRD EDITION Chapter 6: An Introduction to System Software and Virtual Machines.
SWE202 Review. Processes Process State As a process executes, it changes state – new: The process is being created – running: Instructions are being.
Chapter 7 Operating Systems. Define the purpose and functions of an operating system. Understand the components of an operating system. Understand the.
OPERATING SYSTEMS Lecture 3: we will explore the role of the operating system in a computer Networks and Communication Department 1.
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.
By Teacher Asma Aleisa Year 1433 H.   Goals of memory management  To provide a convenient abstraction for programming.  To allocate scarce memory.
7.1 7 Operating Systems Foundations of Computer Science  Cengage Learning.
CIS250 OPERATING SYSTEMS Chapter One Introduction.
Review for Quiz-2 Applied Operating System Concepts Chap.s 1,2,6,7 - ECE3055b, Spring 2005.
Memory Management OS Fazal Rehman Shamil. swapping Swapping concept comes in terms of process scheduling. Swapping is basically implemented by Medium.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 OS 1.
©Brooks/Cole, 2003 Chapter 7 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.
©Brooks/Cole, 2003 Chapter 7 Operating Systems. ©Brooks/Cole, 2003 Define the purpose and functions of an operating system. Understand the components.
CPIT 201 King AbdulAziz University Faculty of Computing & Information Technology Information Technology Department CH (7) Operating System CPIT 201 Introduction.
CT101: Computing Systems Introduction to Operating Systems.
Chapter 7 Operating Systems.
Memory Management.
OPERATING SYSTEMS CS 3502 Fall 2017
Applied Operating System Concepts
Lecture 1: Operating System Services
Chapter 2 Memory and process management
Understanding Operating Systems Seventh Edition
Process Management Process Concept Why only the global variables?
Applied Operating System Concepts -
Chapter 9: Virtual Memory
Chapter 9 – Real Memory Organization and Management
William Stallings Computer Organization and Architecture
Introduction to Operating System (OS)
Virtual Memory Networks and Communication Department.
7 Operating system Foundations of Computer Science ã Cengage Learning.
Operating systems Lecture 3: we will explore the role of the operating system in a computer Networks and Communication Department.
Main Memory Management
Operating System Architecture OS
Operating Systems.
Process Description and Control
Threads Chapter 4.
Operating Systems : Overview
Chapter 2: Operating-System Structures
- When you approach operating system concepts there might be several confusing terms that may look similar but in fact refer to different concepts:  multiprogramming, multiprocessing, multitasking,
Chapter 2 Processes and Threads 2.1 Processes 2.2 Threads
Lecture 1 Runtime environments.
Software - Operating Systems
Chapter 3: Processes Process Concept Process Scheduling
Chapter 2: Operating-System Structures
COMP755 Advanced Operating Systems
Presentation transcript:

Operating Systems

OBJECTIVES After reading this chapter, the reader should be able to: Define the purpose and functions of an operating system. Understand the components of an operating system. Understand the concept of virtual memory. Understand the concept of deadlock and starvation. List some of the characteristics of popular operating systems such as Windows 2000, UNIX, and Linux.

Computer System

7.1 DEFINITION

Definition Some common definitions: An interface between the hardware of a computer and the user (programs or humans) A program that facilitates the execution of other programs Acts as a general manager supervising the activity of each component in the computer system

Definition Note: An operating system is an interface between the hardware of a computer and the user (program or human) that facilitates the execution of the other programs and the access to hardware and software resources Major design goals: Efficient use of hardware Easy to use resource

7.2 EVOLUTION

Evolution Operating systems have gone through a long history of evolution Batch systems: only ensured all of the resources were transferred from one job to the next Time-sharing systems(multiprogramming): each job can be allocated a portion of time to use the resource Personal systems: DOS Parallel systems: multiple CPUs on the same machine Distributed systems: a program can be run partially on one computer and partially on another computer

7.3 COMPONENTS

Components of an operating system

Memory manager -- Monoprogramming The memory manager loads the whole program into memory, run it, and replaces it with the next program Several problems: If the size of memory is less than the size of the program cannot be run When one program is being run, no other program can be executed

Memory manager -- Multiprogramming More than one program is in memory at the same time Executed concurrently CPU switches between the programs Several improvements

Categories of multiprogramming

Partitioning Memory is divided into variable length sections. Each section holds one program The CPU switches between program

Partitioning Partitioning improves the efficiency of the CPU, but still some issues: Partition sizes are small, some program cannot be loaded; Partition sizes are large, some holes in memory There may be some holes after programs are replaced by new ones Compact partitions to remove the holes might create extra overhead

Paging

Paging Improve the efficiency of the partitioning Memory is divided into equally sized sections called frames Program is divided into equally sized sections called pages A page is loaded into a frame in memory The program does not have to be contiguous in memory

Demand paging & Demand segmentation Paging does require the entire program be in memory for execution Demand paging removed the restriction The pages can be loaded into memory one by one, executed, and replaced by another page Program is usually made of a main program and subprograms. In demand segmentation, the program is divided into segments that match the programmer’s view It technique similar to demand paging

Virtual memory Demand paging and demand segmentation mean that part of the program is in main memory and part is on the disk when a program is being executed

Process manager Three terms that refer to a set of instructions Program: a nonactive set of instructions written by a programmer and stored on disk Job: from it is selected for execution until it has finished running and becomes a program again Process: a program in execution

State diagram with the boundaries between a program, a job, and a process

Job scheduler Job scheduler moves a job from the hold state to the ready state or from the running state to the terminated state

Process scheduler Process scheduler moves a process from one state to another

Queues for process management The process manager uses queues to handle multiple processes and jobs that competing with each other for computer resources.

Process synchronization Resource management Whenever resources can be used by more than one user Deadlock starvation

Deadlock Note: Deadlock occurs when the operating system does not put resource restrictions on processes.

Deadlock on a bridge Four necessary conditions for deadlock: Mutual exclusion Resource holding No preemption Circular waiting

Starvation Starvation can happen when the operating system puts too many resource restrictions on a process

Starvation

Starvation

Classic starvation problem: Dining philosophers

Device manager The responsibilites of device manager monitors every I/O device to assure the device is functioning properly Maintains a queue for each I/O device or one or more queue for similar I/O devices control the different policies for accessing I/O device.

File manager The responsibilities of file manager controls access to files. (read or write) supervises the creation, deletion, and modification control the naming of files supervises the storage of files archiving and backups

User interface Each operating system has a user interface It is a program that accepts requests from users (process) and interprets them for the rest of the operating system UNIX: shell Windows: window (menu driven and GUI)

7.4 POPULAR OPERATING SYSTEMS

Popular operating systems Windows 2000 UNIX Linux