Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Operating Systems: Evolution, Concepts, and Types, Lecture notes of Operating Systems

INTRODUCTION TO OPERATING SYSTEM

Typology: Lecture notes

2017/2018

Uploaded on 01/03/2018

ganesh-deshmukh
ganesh-deshmukh 🇮🇳

1 document

1 / 20

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Chapter 1 – Introduction to OS
What is an Operating System?
Operating System is a Resource Manager.
Handles multiple computer resources: CPU,
Internal/External memory, Processes, Tasks,
Applications, Users, etc…
Manages and allocates resources to multiple
users or multiple jobs running at the same time
(e.g., processor time, memory space, I/O
devices)
Arranges to use the computer hardware in an
efficient manner (maximize throughput,
minimize response time) and in a fair manner.
It is a Control Program.
Manages all the components of a complex
computer system in an integrated manner.
Controls the execution of user programs and I/
O devices to prevent errors and improper use
of the computer resources.
Looks over and protects the computer.
It is an extended/virtual machine
An interface between the user and hardware
that hides the details of the hardware (e.g., I/O).
Constructs higher-level (virtual) resources out
of lower-level (physical) resources (e.g., files).
Definition: Is a collection of software
enhancements, executed on the bare
hardware, culminating in a high-level virtual
machine that serves as an advanced
programming environment
.1
Prepared by Dr. Amjad Mahmood
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14

Partial preview of the text

Download Operating Systems: Evolution, Concepts, and Types and more Lecture notes Operating Systems in PDF only on Docsity!

Chapter 1 – Introduction to OS

What is an Operating System?

  • Operating System is a Resource Manager.
    • Handles multiple computer resources: CPU, Internal/External memory, Processes, Tasks, Applications, Users, etc…
    • Manages and allocates resources to multiple users or multiple jobs running at the same time (e.g., processor time, memory space, I/O devices)
    • Arranges to use the computer hardware in an efficient manner (maximize throughput, minimize response time) and in a fair manner.
  • It is a Control Program.
  • Manages all the components of a complex computer system in an integrated manner.
  • Controls the execution of user programs and I/ O devices to prevent errors and improper use of the computer resources.
  • Looks over and protects the computer.
  • It is an extended/virtual machine
    • An interface between the user and hardware that hides the details of the hardware (e.g., I/O).
    • Constructs higher-level (virtual) resources out of lower-level (physical) resources (e.g., files).
    • Definition : Is a collection of software enhancements, executed on the bare hardware, culminating in a high-level virtual machine that serves as an advanced programming environment

Why Operating System?

  • Computer hardware is developed to execute user programs and make solving user problems easier.
  • An operating system makes a computer more convenient to use. - It acts as an interface between user and computer hardware. Therefore, the end-users are not particularly concerned with the computer’s architecture, and they view the computer system in terms of an application. - To programmers, it provides some basic utilities to assist him in creating programs, the management of files, and the control of I/O devices.
  • Accounting
    • collect statistics
    • monitor performance
    • used to anticipate future enhancements
    • (^) used for billing users

Computer System Components

  • A computer system can be divided in to four components. - The Hardware: Provides basic computing resources (CPU, memory, I/O devices). - The Operating System: Controls and coordinates the use of the hardware among the various application programs for the various users. - (^) The Application Programs: Define the ways in which the system resources are used to solve the computing problems of the users (compilers, database systems, video games, business programs). - The Users: Users (people, machines, other computers).

These components can be viewed as layers, where

Early Systems

  • Structure
    • (^) Single user system.
    • Large machines run from console.
    • Programmer/User as operator.
    • Paper Tape or Punched cards.
    • No tapes/disks in computer.
  • Early software: Assemblers, Libraries of common subroutines, Device Drivers, Compilers, Linkers.
  • Significant amount of setup time.
  • Low CPU utilization.
  • But very secure.

Simple Batch Systems

  • Mainframe machines. Input devices were card readers. Output devices were line printer, tape drives, and card punch.
  • (^) A job (a single program+ associated data + control information) usually on the punch cards submitted to the operator.
  • The output consisted of the results of the program or memory dump in case of error.
  • The operator used to batch together similar programs and run as a group to reduce setup time.
  • No user interaction while the job is executing.
  • Current examples include .bat files under Dos – Windows and shell files under Unix/Linux. Example of card deck of a job
  • The operating systems (called resident monitor ) manages the execution of each program in the batch. - Monitor utilities are loaded when needed. - (^) Resident monitor is always in main memory and available for execution. - The resident monitor usually has the following part. - Control card interpreter – responsible for reading and carrying out instructions on the cards. - Loader – loads systems programs and applications programs into memory. - Device drivers – know special characteristics and properties for each of the system’s I/O devices.

  • Outputs printout of previous job from disk to printer.

Uniprogramming Until Now

  • I/O operations are exceedingly slow (compared to instruction execution).
  • A program containing even a very small number of I/O operations will spend most of its time waiting for them.
  • Hence: poor CPU usage when only one program is present in memory.

Memory Layout of Uniprogramming

Memory layout of a simple batch processing system

Multiprogrammed Batch Systems

  • Several jobs are kept in main memory at the same time, and the CPU is multiplexed among them.
  • If memory can hold several programs, then CPU can switch to another one whenever a program is waiting for an I/O to complete – This is multiprogramming.

OS Features Needed for Multiprogramming

  • I/O routine supplied by the system.
  • Memory management – the system must allocate the memory to several jobs.
  • CPU scheduling – the system must choose among several jobs ready to run.
  • Allocation of devices.

Time Sharing Systems (Interactive Systems)

  • TSS extends Batch multiprogramming to handle multiple interactive jobs – It’s Interactive Multiprogramming.
  • Multiple users simultaneously access the system through terminals.
  • (^) Processor’s time is shared among multiple users, that is, the CPU is multiplexed among several jobs that are kept in memory and on disk (the CPU is allocated to a job only if the job is in memory).
  • On-line file system must be available for users to access data and code.
  • Should do memory management
  • Should do CPU scheduling
  • (^) Should do job synchronization and have communication facilities.
  • Should ensure that dead lock and indefinite waiting does not occur.
  • Should allow sharing of computer resources.

Personal Computer Systems

  • Personal computers – computer system dedicated to a single user.
  • Have a wide variety of I/O devices – keyboards, mice, display screens, small printers.
  • User convenience and responsiveness are of prime importance.
  • Can adopt technology developed for larger operating system.
  • Often individuals have sole use of computer and do not need advanced CPU utilization of protection features.
  • May run several different types of operating systems (Windows, MacOS, UNIX, Linux) Two Categories of Computer Systems
  • Single Instruction Single Data (SISD)
  • Single processor executes a single instruction sequence to operate on data stored in a single memory.
  • This is a Uniprocessor.
  • Multiple Instruction Multiple Data (MIMD)
  • A set of processors simultaneously execute different instruction sequences on different data sets.
  • This is a Multiprocessor.

Multiprocessor Systems

  • Multiprocessor systems have more than one CPU in close communication. - Tightly coupled system – processors share memory and a clock; communication usually takes place through the shared memory.
  • Advantages of parallel system:
    • Increased throughput
    • Economical
    • Increased reliability
      • Graceful degradation

Multiprocessor architecture

Symmetric Multiprocessing (SMP)

  • Each processor runs an identical copy of the operating system.
  • Each processor can perform the same functions and share same main memory and I/O facilities (symmetric).
  • The OS schedules processes/threads across all the processors (real parallelism).
  • Existence of multiple processors is transparent to the user.
  • Incremental growth: just add another CPU!

General structure of client-server

Peer-to-peer systems

Network Operating System

  • Provides file sharing
  • Provides communication scheme
  • Runs independently from other computers on the network

Distributed Operating System

  • Less autonomy between computers
  • Gives the impression there is a single operating system controlling the network.

Clustered Systems

  • Clustering allows two or more systems to share external storage and balance CPU load.
  • Asymmetric clustering : one server runs the application while other servers standby.
  • Symmetric clustering : all N hosts are running the application.

Real-Time Systems

  • Note that not all Operating Systems are general- purpose systems.
  • Real-Time (RT) systems are dedicated systems that need to adhere to deadlines, i.e., time constraints.
  • Correctness of the computation depends not only on the logical result but also on the time at which the results are produced.
  • (^) Often used as a control device in a dedicated application such as controlling scientific experiments, medical imaging systems, industrial control systems, and some display systems.
  • Real-Time systems may be either hard or soft real- time.

Migration of Operating-System Concepts and

Features