Computer. Operating Systems Introduction to Operating System (OS)

Similar documents
Operating Systems 作業系統

Chapter 14 Operating Systems

Chapter 14 Operating Systems

Operating System Review

Operating-System Structures

OPERATING SYSTEM. PREPARED BY : DHAVAL R. PATEL Page 1. Q.1 Explain Memory

History of Unix and Linux

OPERATING SYSTEMS & UTILITY PROGRAMS

CHAPTER 03: MULTIMEDIA & OPERATING SYSTEM. :: Operating System :: ~ What is OS?~ ~ OS Functions~ ~ OS Characteristics ~ ~ Type of OS~

Computer Fundamentals : Pradeep K. Sinha& Priti Sinha

Operating Systems. Operating Systems

A+ Guide to Managing and Maintaining your PC, 6e. Chapter 2 Introducing Operating Systems

Chapter 2 Software Components

Accounting Software. Collaboration Software

A+ Guide to Managing and Maintaining Your PC. How Hardware and Software Work Together

Operating System Study Material

Introduction to Linux Overview and Some History

Chapter 8 Operating Systems and Utility Programs أ.أمل زهران

Introduction to Operating Systems. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University

Operating Systems CS3502 Spring 2018

Introduction. What is an Operating System? A Modern Computer System. Computer System Components. What is an Operating System?

Types and Functions of Win Operating Systems

I. Ch 5 System Software

Preview. The Thread Model Motivation of Threads Benefits of Threads Implementation of Thread

Introduction to Operating Systems. Jo, Heeseung

Regardless of the size and complexity of the computer and the operating system, all operating systems perform the same four basic functions:

CSCE 313 Introduction to Computer Systems. Instructor: Dezhen Song

CSCE 313: Intro to Computer Systems

Multiprogramming. Evolution of OS. Today. Comp 104: Operating Systems Concepts 28/01/2013. Processes Management Scheduling & Resource Allocation

Chapter 3: Operating-System Structures

Software Concepts. It is a translator that converts high level language to machine level language.

Operating Systems: Internals and Design Principles. Chapter 2 Operating System Overview Seventh Edition By William Stallings

2/14/2012. Using a layered approach, the operating system is divided into N levels or layers. Also view as a stack of services

Module 3: Operating-System Structures. Common System Components

Chapter 2 Operating-System Structures

Chapter 3 Computer Software

CS153: Process. Chengyu Song. Slides modified from Harsha Madhyvasta, Nael Abu-Ghazaleh, and Zhiyun Qian

Chapter 3: Operating-System Structures

Welcome to ULI101! The Internet has become part of our daily lives.

Four Components of a Computer System. Operating System Concepts 7 th Edition, Jan 12, 2005

CSCA0201 FUNDAMENTALS OF COMPUTING. Chapter 6 Operating Systems

OPERATING SYSTEMS. G.C.E. Advanced Level ICT

OS concepts and structure. q OS components & interconnects q Structuring OSs q Next time: Processes

OPERATING SYSTEMS. COMS W1001 Introduction to Information Science. Boyi Xie

Computing Fundamentals and Programming (CE-100) Batch 2019 (Electronic Engineering) Chapter 6: System Software

AMSC/CMSC 662 Computer Organization and Programming for Scientific Computing Fall 2011 Operating Systems Dianne P. O Leary c 2011

Chapter 8 Operating Systems and Utility Programs

CSC1010 Spring 2013 Assignment 3 Chapter 7 and 8 Due: 4/8/2013. Name Student ID

Module 3: Operating-System Structures

CHAPTER 2: PROCESS MANAGEMENT

Operating System Concepts Rab Nawaz Khan Jadoon

Operating Systems Course 2 nd semester 2016/2017 Chapter 1: Introduction

OS and Computer Architecture. Chapter 3: Operating-System Structures. Common System Components. Process Management

INTRODUCTION TO OPERATING SYSTEMS. Jo, Heeseung

Memory Management. Jo, Heeseung

Operating Systems. Lecture Course in Autumn Term 2015 University of Birmingham. Eike Ritter. September 22, 2015

Operating Systems Overview. Chapter 2

Processes and Threads

Reserves time on a paper sign-up sheet. Programmer runs his own program. Relays or vacuum tube hardware. Plug board or punch card input.

Chapter 1: Introduction. Operating System Concepts 9 th Edit9on

5 Computer Organization

Chapter 3: Operating-System Structures

Chapter 4: Multithreaded Programming. Operating System Concepts 8 th Edition,

OS structure. Process management. Major OS components. CSE 451: Operating Systems Spring Module 3 Operating System Components and Structure

Computer Software. Lect 4: System Software

Operating Systems Fundamentals. What is an Operating System? Focus. Computer System Components. Chapter 1: Introduction

1- Which of the following tasks is the operating system NOT responsible for? d) Coordinates communication between software applications and the CPU

Operating Systems : Overview

When we start? 10/24/2013 Operating Systems, Beykent University 1

Operating Systems. Operating System Structure. Lecture 2 Michael O Boyle

Operating Systems. Fall Dongkun Shin, SKKU

Operating Systems. Spring Dongkun Shin, SKKU

Systems software. Definition. Categories of software. Examples Of Systems Software 11/23/2018

Process Description and Control. Chapter 3

Chapter 1: Introduction Operating Systems MSc. Ivan A. Escobar

What Operating Systems Do An operating system is a program hardware that manages the computer provides a basis for application programs acts as an int

Chapter 1: Introduction

Chapter 1: Introduction

EECS 3221 Operating System Fundamentals

EECS 3221 Operating System Fundamentals

Operating Systems. IV. Memory Management

OPERATING SYSTEMS: Lesson 1: Introduction to Operating Systems

Linux Operating System

Lesson 1 Computers and Operating Systems

Module 1: Introduction

Learning Outcomes. Processes and Threads. Major Requirements of an Operating System. Processes and Threads

Misc. Third Generation Batch Multiprogramming. Fourth Generation Time Sharing. Last Time Evolution of OSs

Agenda Process Concept Process Scheduling Operations on Processes Interprocess Communication 3.2

Definition. A series of detailed instructions that control the operation of a computer system. are developed by computer programmers

CS370 Operating Systems

EEE 435 Principles of Operating Systems

European University of Lefke. Instructor: Dr. Arif SARI

Computer chip: A very small pieces of silicon or other semi-conducting material onto which integrated circuits are embedded Circuit board: A thin

Chapter 4: Multithreaded Programming

Lecture Topics. Announcements. Today: Operating System Overview (Stallings, chapter , ) Next: Processes (Stallings, chapter

Lecture 2 Process Management

Chapter 1: Introduction

Course Description: This course includes the basic concepts of operating system

CSCI 120 Introduction to Computation Operating System (draft)

Operating Systems Concepts

Transcription:

Computer Operating Systems Introduction to Operating System (OS)

A computer is a system composed of two major components: hardware and software. 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: o The operating system that controls the access to hardware by users o The application programs that use the computer hardware to solve users problems.

Figure A computer system

1. INTRODUCTION 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.

Bootstrap process The operating system, 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: 1. 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. 2. When loading is done, the program counter is set to the first instruction of the operating system in RAM.

Figure The bootstrap process

Personal systems When personal computers were introduced, there was a need for an operating system for this new type of computer. During this era, singleuser 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.

2. COMPONENTS A modern operating system has at least four duties: Memory manager Process manager Device manager File manager

Figure Components of an operating system

User interface Each operating system has a user interface, a program that accepts requests from users. o The UNIX operating system (os) user interface is called a shell o The windows os, denotes that it is menu driven and has a GUI (graphical user interface) component.

Memory manager One of the responsibilities of a modern computer system is memory management. 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 multiprogramming

Monoprogramming The memory is shared between a single program and the operating system The whole program is in memory for execution When the program finishes running, the program area is occupied by another program. Figure Monoprogramming

Multiprogramming More than one program is in memory at the same time The programs are executed concurrently, with the CPU switching rapidly between the programs. Figure Multiprogramming

Figure Categories of multiprogramming

Figure Partitioning

Virtual memory 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 Virtual memory

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.

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 Job 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). Figure Queues for process management

File manager Operating systems today use a file manager to control access to files. 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.

3. 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.

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. i UNIX is a multiuser, multiprocessing, portable operating system. It is designed to facilitate programming, text processing and communication.

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.

Windows NT/2000/XP/7/8/9 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.