How To Understand The History Of An Operating System



Similar documents
INTRODUCTION TO COMPUTING CPIT 201 WEEK 13 LECTURE 3

Operating Systems OBJECTIVES 7.1 DEFINITION. Chapter 7. Note:

Chapter 3. Operating Systems

CHAPTER 15: Operating Systems: An Overview

Computers: Tools for an Information Age

Multiprogramming. IT 3123 Hardware and Software Concepts. Program Dispatching. Multiprogramming. Program Dispatching. Program Dispatching

Operating Systems 4 th Class

Kernel. What is an Operating System? Systems Software and Application Software. The core of an OS is called kernel, which. Module 9: Operating Systems

3 - Introduction to Operating Systems

Chapter 1: Introduction. What is an Operating System?

4.1 Introduction 4.2 Explain the purpose of an operating system Describe characteristics of modern operating systems Control Hardware Access

OPERATING SYSTEM SERVICES

Components of a Computing System. What is an Operating System? Resources. Abstract Resources. Goals of an OS. System Software

Chapter 5: System Software: Operating Systems and Utility Programs

Unit 4 Objectives. System Software. Component 4: Introduction to Information and Computer Science. Unit 4: Application and System Software Lecture 2

Operating System Structures

Operating Systems. Notice that, before you can run programs that you write in JavaScript, you need to jump through a few hoops first

Chapter 11 I/O Management and Disk Scheduling

ELEC 377. Operating Systems. Week 1 Class 3

Unit 10 : An Introduction to Linux OS

Operating System Software

Chapter 2: OS Overview

Technology in Action. Alan Evans Kendall Martin Mary Anne Poatsy. Eleventh Edition. Copyright 2015 Pearson Education, Inc.

Chapter 4. Operating Systems and File Management

Operating Systems Introduction

OPERATING SYSTEMS STRUCTURES

Operating System Tutorial

Chapter 5 System Software: Operating Systems and Utility Programs

OPERATING SYSTEMS Software in the Background. Chapter 2

Introduction. What is an Operating System?

Operating System Today s Operating Systems File Basics File Management Application Software

OPERATING SYSTEMS Internais and Design Principles

Operating Systems Overview As we have learned in working model of a computer we require a software system to control all the equipment that are

Operating Systems: Basic Concepts and History

Chapter Contents. Operating System Activities. Operating System Basics. Operating System Activities. Operating System Activities 25/03/2014

Undergraduate Course Syllabus

Types Of Operating Systems

Operating system Dr. Shroouq J.

Chapter 3: Operating-System Structures. Common System Components

Operating Systems for Parallel Processing Assistent Lecturer Alecu Felician Economic Informatics Department Academy of Economic Studies Bucharest

Networking Operating Systems (CO32010)

Chapter 3: Operating Systems

After studying this lesson, you will have a clear understanding of, what an Operating System is. functions of an Operating System

Operating System Components and Services

Optimizing Performance. Training Division New Delhi

Functions of NOS Overview of NOS Characteristics Differences Between PC and a NOS Multiuser, Multitasking, and Multiprocessor Systems NOS Server

Network operating systems typically are used to run computers that act as servers. They provide the capabilities required for network operation.

Chapter 2 System Structures

Learning Objectives. Chapter 1: Networking with Microsoft Windows 2000 Server. Basic Network Concepts. Learning Objectives (continued)

Overview and History of Operating Systems

Chapter 3 Operating-System Structures

Objectives. Chapter 2: Operating-System Structures. Operating System Services (Cont.) Operating System Services. Operating System Services (Cont.

Overview of Operating Systems Instructor: Dr. Tongping Liu

CS 3530 Operating Systems. L02 OS Intro Part 1 Dr. Ken Hoganson

Components of a Computer System

Software systems and issues

Running Windows on a Mac. Why?

Chapter 6, The Operating System Machine Level

Lesson Objectives. To provide a grand tour of the major operating systems components To provide coverage of basic computer system organization

EECS 678: Introduction to Operating Systems

Operating Systems Overview

Installing a Second Operating System

Operating Systems. and Windows

Integrated and reliable the heart of your iseries system. i5/os the next generation iseries operating system

The Reincarnation of Virtual Machines

I/O Management. General Computer Architecture. Goals for I/O. Levels of I/O. Naming. I/O Management. COMP755 Advanced Operating Systems 1

Chapter 8 Objectives. Chapter 8 Operating Systems and Utility Programs. Operating Systems. Operating Systems. Operating Systems.

Click to view Web Link, click Chapter 8, Click Web Link from left navigation, then click BIOS below Chapter 8 p. 395 Fig. 8-4.

CS420: Operating Systems OS Services & System Calls

Contents. Chapter 1. Introduction

Principles of Operating Systems CS 446/646

Technical Properties. Mobile Operating Systems. Overview Concepts of Mobile. Functions Processes. Lecture 11. Memory Management.

Parallels Desktop 4 for Windows and Linux Read Me

UNIT 1 OPERATING SYSTEM : AN OVERVIEW

Introduction to Computer Administration. System Administration

Outline: Operating Systems

(Advanced Topics in) Operating Systems

Chapter 1. The largest computers, used mainly for research, are called a. microcomputers. b. maxicomputers. c. supercomputers. d. mainframe computers.

Gildart Haase School of Computer Sciences and Engineering

Software: Systems and Application Software

Origins of Operating Systems OS/360. Martin Grund HPI

Fall Lecture 1. Operating Systems: Configuration & Use CIS345. Introduction to Operating Systems. Mostafa Z. Ali. mzali@just.edu.

PARALLELS SERVER 4 BARE METAL README

OS Concepts and structure

Operating Systems, 6 th ed. Test Bank Chapter 7

Discovering Computers

Performance and scalability of a large OLTP workload

International Engineering Journal For Research & Development

CS3600 SYSTEMS AND NETWORKS

Operating Systems. Module Descriptor

Virtual. The term virtual machine initially described a 1960s. The Reincarnation of FOCUS. Virtual. Machines

An introduction to operating systems

Review from last time. CS 537 Lecture 3 OS Structure. OS structure. What you should learn from this lecture

Operating System Organization. Purpose of an OS

theguard! ApplicationManager System Windows Data Collector

Chapter 2: Computer-System Structures. Computer System Operation Storage Structure Storage Hierarchy Hardware Protection General System Architecture

ERserver. iseries. Work management

2) What is the structure of an organization? Explain how IT support at different organizational levels.

Example of Standard API

Pro Bundle Evaluator s Guide Software Pursuits, Inc.

Transcription:

7 Operating Systems 7.1 Source: Foundations of Computer Science Cengage Learning Objectives After studying this chapter, the student should be able to: 7.2 Understand the role of the operating system. Understand the process of bootstrapping to load the operating system into memory. List the components of an operating system. Discuss the role of the memory manager. Discuss the role of the process manager. Discuss the role of the device manager. Discuss the role of the file manager in an operating system. Understand the main features of three common operating systems: UNIX, Linux and Windows NT. 1

A computer is a system composed of two major components: hardware and software.. Computer hardware is the physical equipment. Software is the collection of programs that allows the hardware to do its job. Computer software is divided into two broad categories: the operating system and application programs (Figure 7.1). Application programs use the computer hardware to solve users problems. The operating system, on the other hand, controls the access to hardware by users. 7.3 Figure 7.1 A computer system 7-11 INTRODUCTION An operating system is complex, so it is difficult to give a simple universal definition. Instead, here are some common definitions: An operating system is an interface between the hardware of a computer and the user (programs or humans). An operating system is a program (or a set of programs) that facilitates the execution of other programs. An operating system acts as a general manager supervising the activity of each component in the computer system. 7.4 2

An operating system is an interface between the hardware of a computer and the user (programs or humans) that facilitates the execution of other programs and the access to hardware and software resources. Two major design goals of an operating system are: Efficient use of hardware. Ease of use of resources. 7.5 7.6 Bootstrap process The operating system, based on the above definitions, provides supports for other programs. For example, it is responsible for loading other programs into memory for execution. However, the operating system itself is a program that needs to be loaded into the memory and be run. How is this dilemma solved? The solution is a two-stage process. A very small section of memory is made of ROM and holds a small program called the bootstrap program. When the computer is turned on, the CPU counter is set to the first instruction of this bootstrap program and executes the instructions in this program. When loading is done, the program counter is set to the first instruction of the operating system in RAM. 3

7.7 Figure 7.2 The bootstrap process 7-22 EVOLUTION Operating systems have gone through a long history of evolution, which we summarize here. Batch systems Batch operating systems were designed in the 1950s to control mainframe computers. At that time, computers were large machines that used punched cards for input, line printers for output and tape drives for secondary storage media. Each program to be executed was called a job. A programmer who wished to execute a job sends a request to the operating system. 7.8 4

Time-sharing systems To use computer system resources efficiently, multiprogramming was introduced. The idea is to hold several jobs in memory at a time, and only assign a resource to a job that needs it on the condition that the resource is available. Multiprogramming brought the idea of time sharing: resources could be shared between different jobs, with each job being allocated a portion of time to use a resource. Because a computer is much faster than a human, time sharing is hidden from the user each user has the impression that the whole system is serving them exclusively. 7.9 Personal systems When personal computers were introduced, there was a need for an operating system for this new type of computer. During this era, single-user operating systems such as DOS (Disk Operating System) were introduced. Parallel systems The need for more speed and efficiency led to the design of parallel systems: multiple CPUs on the same machine. Each CPU can be used to serve one program or a part of a program, which means that many tasks can be accomplished in parallel instead of serially. The operating systems required for this are more complex than those that support single CPUs. 7.10 5

Distributed systems Networking and internetworking, as we saw in Chapter 6, have created a new dimension in operating systems. A job that was previously done on one computer can now be shared between computers that may be thousands of miles apart. Distributed systems combine features of the previous generation with new duties such as controlling security. Real-time systems A real-time system is expected to do a task within a specific time constraint. They are used with real-time applications, which monitor, respond to or control external processes or environments. 7.11 7-33 COMPONENTS Today s s operating systems are very complex. An operating system needs to manage different resources in a computer system. It resembles an organization with several managers at the top level. Each manager is responsible for managing their department, but also needs to cooperate with others and coordinate activities. A modern operating system has at least four duties: memory manager, process manager, device manager and file manager. 7.12 6

7.13 Figure 7.3 Components of an operating system User interface Each operating system has a user interface, a program that accepts requests from users (processes) and interprets them for the rest of the operating system. A user interface in some operating systems, such as UNIX, is called a shell. In others, it is called a window to denote that it is menu driven and has a GUI (graphical user interface) component. 7.14 7

Memory manager One of the responsibilities of a modern computer system is memory management. Although the memory size of computers has increased tremendously in recent years, so has the size of the programs and data to be processed. Memory allocation must be managed to prevent applications from running out of memory. Operating systems can be divided into two broad categories of memory management: monoprogramming and multiprogramming. 7.15 Monoprogramming In monoprogramming, most of the memory capacity is dedicated to a single program; only a small part is needed to hold the operating system. In this configuration, the whole program is in memory for execution. When the program finishes running, the program area is occupied by another program. 7.16 Figure 7.4 Monoprogramming 8

Multiprogramming In multiprogramming, more than one program is in memory at the same time, and they are executed concurrently, with the CPU switching rapidly between the programs. 7.17 Figure 7.5 Multiprogramming Figure 7.6 Categories of multiprogramming 7.18 Figure 7.7 Partitioning 9

Figure 7.8 Paging Figure 7.9 Demand paging 7.19 Figure 7.10 Demand segmentation 7.20 10

Virtual memory Demand paging and demand segmentation mean that, when a program is being executed, part of the program is in memory and part is on disk. This means that, for example, a memory size of 10 MB can execute 10 programs, each of size 3 MB, for a total of 30 MB. At any moment, 10 MB of the 10 programs are in memory and 20 MB are on disk. There is therefore an actual memory size of 10 MB, but a virtual memory size of 30 MB. Figure 7.11 shows the concept. Virtual memory, which implies demand paging, demand segmentation or both, is used in almost all operating systems today. 7.21 Figure 7.11 Virtual memory 7.22 11

Process manager A second function of an operating system is process management, but before discussing this concept, we need to define some terms. Program, job, and process A program is a non-active set of instructions stored on disk. A program becomes a job from the moment it is selected for execution until it has finished running and becomes a program again. A process is a program in execution. It is a program that has started but has not finished. 7.23 State diagrams The relationship between a program, a job and a process becomes clearer if we consider how a program becomes a job and how a job becomes a process. Figure 7.12 State diagram with boundaries between program, job and process 7.24 12

Schedulers To move a job or process from one state to another, the process manager uses two schedulers: the job scheduler and the process scheduler. Figure 7.13 Job scheduler 7.25 Figure 7.14 Process scheduler Queuing Our state diagram shows one job or process moving from one state to another. In reality, there are many jobs and many processes competing with each other for computer resources. To handle multiple processes and jobs, the process manager uses queues (waiting lists). A job control block or process control block is associated with each job or process. This is a block of memory that stores information about that job or process. The process manager stores the job or process control block in the queues instead of the job or process itself. 7.26 13

Figure 7.15 Queues for process management 7.27 Process synchronization The whole idea behind process management is to synchronize different processes with different resources. Whenever resources can be used by more than one user (or process, in this case), we can have two problematic situations: deadlock and starvation. Deadlock occurs when the operating system does not put resource restrictions on processes. Starvation is the opposite of deadlock. It can happen when the operating system puts too many resource restrictions on a process. 7.28 14

Figure 7.16 Deadlock 7.29 Figure 7.17 Deadlock on a bridge Figure 7.18 Starvation 7.30 Figure 7.19 The dining philosophers problem Two chopsticks are for five philosophers 15

Device manager The device manager, or input/output manager, is responsible for access to input/ output devices. There are limitations on the number and speed of input/output devices in a computer system. The device manager monitors every input/output device constantly to ensure that the device is functioning properly. The device manager maintains a queue for each input/output device or one or more queues for similar input/output devices. The device manager controls the different policies for accessing input/output devices. 7.31 File manager Operating systems today use a file manager to control access to files. A detailed discussion of the file manager also requires advanced knowledge of operating system principles and file access concepts that are beyond the scope of this book. The file manager: controls access to files. supervises the creation, deletion, and modification of files. controls the naming of files. supervises the storage of files. is responsible for archiving and backups. 7.32 16

7-44 A SURVEY OF OPERATING SYSTEMS In this section we introduce some popular operating systems and encourage you to study them further. We have chosen three operating systems that are familiar to most computer users: UNIX, Linux and Windows. 7.33 UNIX UNIX was originally developed in 1969 by Thomson and Ritchie of the Computer Science Research Group at Bell Laboratories. UNIX has gone through many versions since then. It has been a popular operating system among computer programmers and computer scientists. UNIX is a multiuser, multiprocessing, portable operating system. It is designed to facilitate programming, text processing and communication. 7.34 17

7.35 Figure 7.20 Components of the UNIX operating system Linux In 1991, Linus Torvalds, a Finish student at the University of Helsinki at the time, developed a new operating system that is known today as Linux. The initial kernel, which was similar to a small subset of UNIX, has grown into a fullscale operating system today. The Linux 2.0 kernel, released in 1997, was accepted as a commercial operating system: it has all features traditionally attributed to UNIX. 7.36 18

Windows NT/2000/XP In the late 1980s Microsoft, under the leadership of Dave Cutler, started development of a new single-user operating system to replace MS-DOS (Microsoft Disk Operating System). Windows NT (NT standing for New Technology) was the result. Several versions of Windows NT followed and the name was changed to Windows 2000. Windows XP (XP stands for experience) was released in 2001. We refer to all of these versions as Windows NT or just NT. 7.37 Figure 7.21 The architecture of Windows NT 7.38 19

Advanced Operating Systems Windows 7 supports the functions for touch-controlled screen and has released this year of 2009. Win 8 Android 4.0/4.1 ios 6 7.39 20