3 - Types of OS
3 - Types of OS
Content
Quick Recap
Types of OS
Services of OS
Recap
Functions of OS:
Process management, Memory Management, I/O device management, File
management, Network Management, Security & Protection
Components of OS:
Kernel, Process Scheduler, PCB, Concurrency Control, Physical & virtual
memory manager, File handler, Device Driver, I/O controller, CLI, GUI,
Network Protocols & Interface;
Types of OS:
Batch OS, Spooling concept
Types of operating system
1. Batch OS
2. Multiprogramming OS
3. Multitasking/Time sharing OS
4. Multiprocessing OS
5. Real Time OS
6. Distributed OS
7. Clustered OS
8. Embedded OS
Process Execution
Aim: Minimize the CPU idleness
CPU bound process requires most of the time on CPU; E.g.- For
heavy calculation
I/O bound process requires most of the time on I/O devices; E.g.- For
Printing the page
Batch OS
Only one job is given input at a time as there was no memory; computer
will take the input then process it and then generate output.
Common input/output device were punch card or tape drives. So, these
devices were very slow, and processor remain ideal most of the time.
Batch OS
To speed up the processing job with similar types (for e.g. FORTRAN
jobs, COBOL jobs etc.) were batched together and run through the
processor as a group (batch).
Advantages:
High CPU Utilization
Less Waiting Time: Minimizes idle time.
Multi-Task Handling: Manages concurrent tasks
Shared CPU Time: Increases system efficiency.
Disadvantages:
Complex Scheduling: Difficult to program.
Complex Memory Management: Intricate handling of memory is required.
Multitasking (Timesharing) OS
In the modern operating systems, we are able to play MP3 music, edit
documents in Microsoft Word, surf the Google Chrome all running at the
same time. (by context switching, the illusion of parallelism is achieved).
Advantage: Responsiveness
Multiprocessing OS
Uses two or more CPU within a single computer system.
Multiple CPU’s share system bus, memory and other peripheral devices.
Multiple concurrent processes each can run on a separate CPU, here we
achieve a true parallel execution of processes.
CPU divides and conquers the jobs
Used in AI and expert system, image processing, weather forecasting, etc.
Advantages:
1. Increased throughput
2. Economy of scale
3. Increased reliability
Two types:
Asymmetric Multiprocessing – each processor is assigned a specie task.
Symmetric Multiprocessing – each processor performs all tasks
Symmetric Multiprocessing Architecture
Dual-Core Design
Multi-chip and multicore
Systems containing all chips
Chassis containing multiple separate systems
Multiprogramming Vs Multiprocessing OS
Point MultiProgramming MultiProcessing
Two Types:
Hard realtime operating system- predicted by a deadline.
Soft realtime operating system- has certain deadlines, may be missed and
they will take the action at a time t=0+.
Distributed OS
Collection of separate, possibly heterogeneous, systems networked together
Advantages:
Resource sharing
Computation speedup
Reliability
Scalability
Communication
Clustered OS
Like multiprocessor systems, but multiple systems working together
Usually sharing storage via a storage-area network (SAN)
Provides a high-availability service which survives failures
Some clusters are for high-performance computing (HPC)
Applications must be written to use parallelization
Some have distributed lock manager (DLM) to avoid conflicting operations
Embedded OS
A specialized OS designed to perform a specific task for a device that is not a
computer.
The main job of an embedded OS is to run the code that allows the device to
do its job.
OS Services
System Calls
User & kernel mode
Storage structure & Hierarchy