operating system

21
Mr Satyendra Mohan Srivastava JIT Barabanki

Upload: satyendra-mohan

Post on 27-Jan-2017

65 views

Category:

Engineering


0 download

TRANSCRIPT

Page 1: Operating system

Mr Satyendra Mohan Srivastava JIT Barabanki

Page 2: Operating system

Mr Satyendra Mohan Srivastava, JIT Barabanki

Chapter 1: Introduction What is Operating System Computer System Structure Diagrammatic representation of a Computer System Operating System: Viewpoints Few important points Classification of OS Computer startup OS Layered approach System component OS services

05/01/23 2

Page 3: Operating system

Mr Satyendra Mohan Srivastava, JIT Barabanki

Operating System

An Operating System is a program that acts as an intermediate b/w the computer hardware and the user of a computer

An Operating System is a program that manages the computer hardware

Operating system goalsConvenience for the userEfficiency

05/01/23 3

Page 4: Operating system

Mr Satyendra Mohan Srivastava, JIT Barabanki

Computer System Structure

Computer system is mainly divided into four components:• Hardware

Memory, CPU and I/O devices• Operating system

Coordinates and controls the use of hardware• Application programs

Word processors, web browsers, compilers, database systems and video games

• UsersMachines, people and other computers

05/01/23 4

Page 5: Operating system

Mr Satyendra Mohan Srivastava, JIT Barabanki

Operating System: Viewpoints

Operating System can be understood by following point of views:

User View System View

• USER VIEWUser emphasizes on ease of use, convenience, little on performance and none to resource utilization

• SYSTEM VIEWResource allocator - Hardware and SoftwareControl Program – Manages the execution of user programs(errors and improper use)

05/01/23 5

Page 6: Operating system

computer hardware

Mr Satyendra Mohan Srivastava, JIT Barabanki

Diagrammatic representation of a Computer System

User3

… Usern

User1

User2

operating system

05/01/23 6

compiler assembler text editor … database system

system and application programs

Page 7: Operating system

Mr Satyendra Mohan Srivastava, JIT Barabanki

Diagrammatic representation of a Computer System

User3

… Usern

User1

User2

05/01/23 7

compiler assembler text editor … database system

system and application programs

operating system

computer hardware

Page 8: Operating system

Mr Satyendra Mohan Srivastava, JIT Barabanki

Few Important Points

• Kernel is only program running all the time on the computer system• Other program will be an application program or system

program

05/01/23 8

Page 9: Operating system

Mr Satyendra Mohan Srivastava, JIT Barabanki

Classification of Operating System

Batch Systems

Interactive Systems Multiprogrammed Systems Time Sharing Systems

Desktop Systems

Multiprocessor Systems

Distributed Systems Client Server Systems Peer to Peer Systems

05/01/23 9

Page 10: Operating system

Mr Satyendra Mohan Srivastava, JIT Barabanki

Classification of Operating Systems Conti…

Real Time Systems

Clustered Systems

Interactive System

Multiuser System

Multithreaded System

05/01/23 10

Page 11: Operating system

Mr Satyendra Mohan Srivastava, JIT Barabanki

Classification of Operating Systems Conti…

05/01/23 11

Batch System Job(Program, Data & Information) in job pool All job are kept in job pool Submit to the Job operator Operators together jobs(batch) as a group The output send back to appropriate program Disk technology allowed OS to keep all jobs on a disk OS perform job scheduling

Multiprogrammed System Goal: To maximize the CPU load Atleast one job needs to execute, CPU never sit idle Job Scheduling

Page 12: Operating system

Mr Satyendra Mohan Srivastava, JIT Barabanki

Classification of Operating Systems Conti…

05/01/23 12

Time-Sharing or Multitasking System It is one of the extension of Multiprogramming The executable multiple jobs with short frequency time while running Minimum response time Resources are shared in many users CPU scheduling and Multiprogramming are mechanism for its

implementation

Multiprocessor or Parallel or Tightly coupled Systems More than one processor with shared bus, clock, peripheral devices Sometimes even memory Advanages: Increased throughput, Economy of sale, Increased

reliability

Page 13: Operating system

Mr Satyendra Mohan Srivastava, JIT Barabanki

Classification of Operating Systems Conti…

05/01/23 13

Distributed System

Client-Server System Centralized systems act as server systems Server system satisfies the request generated by client

N/W

ClientClient Client Client

Server

Basic Client Server Architecture

Page 14: Operating system

Mr Satyendra Mohan Srivastava, JIT Barabanki05/01/23 14

Classification of Operating Systems Conti…

Peer-to-Peer Systems Clustered System

Grouping of requirement

Real-Time System Rigid time requirement Type: Hard and Soft real-time system

Interactive System Provide interaction between Human and Computer system

Page 15: Operating system

Mr Satyendra Mohan Srivastava, JIT Barabanki

Classification of Operating Systems Conti…

05/01/23 15

Multiuser System Concurrent access by multiple users

Multithreaded System A thread is a lightweight process A thread is a flow of execution Goal: Parallelism

Page 16: Operating system

Mr Satyendra Mohan Srivastava, JIT Barabanki

Computer Startup Booting

The procedure or mechanism of starting a computer by loading Kernel

Bootstrap program

loaded at reboot or power-up stored in ROM or EPROM

05/01/23 16

Page 17: Operating system

Mr Satyendra Mohan Srivastava, JIT Barabanki

Operating System Structure Layered Approach

05/01/23 17

Operating System is divided or broken down into levels (layers)

Built on top of lower layer

The bottom layer (lower layer 0) is hardware and the highest layer is the user interferences

The Data Structures and a set of routines at the top layer can invoke operations on lower layer

Each layer hides some operations, certain data structures and hardware from higher level layers

Page 18: Operating system

Mr Satyendra Mohan Srivastava, JIT Barabanki

Operating System Structure Layered

Approach

05/01/23 18

Hardware

Kernel

Program

Layered Architecture

Modularity Simplifies debugging(errors) System verification

Advantage:

Page 19: Operating system

Mr Satyendra Mohan Srivastava, JIT Barabanki

System Component

05/01/23 19

Process Management

Main Memory Management

File Management

I/O System Management

Secondary Memory Management

Networking

Protection System

Command Interpreter System

Page 20: Operating system

Mr Satyendra Mohan Srivastava, JIT Barabanki

Operating System Services

05/01/23 20

There are five type of services provided by operating system:

Program Execution

I/O Operations

File System manipulation

Communications

Error detection

Resource allocation

Accounting

Protection

Page 21: Operating system

Mr Satyendra Mohan Srivastava, JIT Barabanki

Any Question….

05/01/23 21