Objectives
At the end of this unit, you will be able to Understand the definition and functions of OS. Understand the basic concept of operating system. Different architecture of OS. Learn and understand shell and awk programming. Comparison between different operating system.
Books to Refere
1. William Stalling Operating System 6th Edition Pearson Education. 2. Silberschatz Galvin Operating System Concepts 8th Edition John Wiley Pub. 3. Sumitabha Das UNIX Concepts and Applications 3rd Edition TMGH.
Operating System
A program that controls the execution of application programs An interface between applications and hardware Best Possible Definition: An Operating system is the software on a computer that manages the way different programs use its hardware and regulates the way that a user controls the computer.
Program execution - Number of task need to be perform to execute a program - Instruction and data must be loaded in main memory. O. S. handles these scheduling duties for the user.
Operating System
Responsible for managing resources Functions same way as ordinary computer software
It is a program that is executed
OTHER DEFINITIONS
o An Operating System is a control program.
o An Operating System is similar to a Government. o An Operating System can be defined as a Resource Manager.
OTHER DEFINITIONS
o An Operating System is a control program.
o An Operating System is similar to a This program controls the execution Government. of user programs to prevent errors and
improper use can of the computer. o An Operating System be defined as a Resource Manager.
OTHER DEFINITIONS
o An Operating System is and a control program. As a resource manager allocator, the OS
will resolve the confliting request for An Operating is similar a computer System resources(CPU time,to memory space, files storage space, input/output Government. devices, etc) from various users or programs.
OS as Resource Manager
COMPUTER SOFTWARE
System Programs
Application Programs
OPERATING SYSTEM
o It is the most fundamental of all the system programs, which controls all the computers resources and provides the base upon which the application programs can be written. o It is a layer of s/w on the top of the bare h/w, which will shield programmers from the complexity of the h/w.
COMPUTER SYSTEM
Banking System
Compilers Editors
Airline System
Command Interpreter
Application Programs
Hardware
Physical Devices
COMPUTER SYSTEM
Banking System
Compliers Editors
Airline System
Command Interpreter
Integrated circuit chips, wires, power suppliers, cathode ray tube, etc.
Physical Devices
A Computer system consists of Hardware, System Programs and Application Programs
COMPUTER SYSTEM
Banking System
Compliers Editors
Airline System
Command Interpreter
Directly controls the physical devices and provides a cleaner interface to the next layer. It interprets the instructions from the above layer and carry out them.
Physical Devices
A Computer system consists of Hardware, System Programs and Application Programs
COMPUTER SYSTEM
Banking System
Compliers Editors
Airline System
Command Interpreter
Instructions for moving data around the machine, doing arithmetic and comparing values. I/O devices are controlled by loading values into specified device registers.
Physical Devices
A Computer system consists of Hardware, System Programs and Application Programs
COMPUTER SYSTEM
Banking System
Compliers Editors
Airline System
Command Interpreter
Major function is to hide all h/w complexity and give the programmer a more convenient set of instructions to work with.
Physical Devices
A Computer system consists of Hardware, System Programs and Application Programs
COMPUTER SYSTEM
Banking System
Compliers Editors
Airline System
Command Interpreter
The OS runs in kernel mode but the compilers and editors run in user mode. If a user does not like a particular complier, the user is free to write his own but he is not free to write his own disk interrupt handler, which is part of the OS.
Physical Devices
A Computer system consists of Hardware, System Programs and Application Programs
COMPUTER SYSTEM
Banking System
Compliers Editors
Airline System
Command Interpreter
These programs are written by the users to solve their particular problems, such as commercial data processing, engineering calculations, or game playing.
Physical Devices
A Computer system consists of Hardware, System Programs and Application Programs
Batch Processing
Card Reader
Computer
Printer
Uniprogramming
Processor must wait for I/O instruction to complete before proceeding
Multiprogramming
In this environment, multiple programs are kept in memory and one program is executed at a time. When a program terminates or goes for I/O resources, another program starts executing Multiprogramming improves CPU utilization Improves Throughput
Multiprogramming
When one job needs to wait for I/O, the processor can switch to the other job
Multiprogramming
Dynamic resource allocation required elaborate and complicated resource management and access control technique
Multiplicity of Systems
Cluster Grid
Symmetric Multiprocessing :Each processor runs identical copy of OS Asymmetric multiprocessing: master slave relation exist. These are tightly coupled systems
Distributed Systems
These systems depend on network for their functionality
Client Server Systems Peer to peer systems
Each processor has its own local memory Processors communicate with each other through communication links Loosely coupled Systems
Real-time systems
Those systems in which the correctness of the system depends not only on the logical result of computation, but also on the time at which the results are produced.
Major Achievements
Processes Memory management Information protection and security Scheduling and resource management System structure
Memory management Process management Device management Information management Protection The o/s keeps track of the memory, what Handling parts are in use and by whom. Error
The o/s keeps track of processors Protection and the status of processes. It decides who will have a chance to Error Handling use the processor.
its location, use, status etc. and decides Memory management who gets use of the resources, Process management enforce protection requirements
An o/s is to protect the user from Memory management unauthorized access of his files or data. Process management And also it should protect itself from users management Device Information management
Different Architectures of OS