Chapter 14-OS
Chapter 14-OS
Chapter 14
Operating Systems
Computer Fundamentals: Pradeep K. Sinha & Priti Sinha
Learning Objectives
Users
Other
System Software and
Application
Programs
Operating
System
The operating
Computer system layer hides the
Hardware details
the hardware
of from the
programmer
and provides the
with convenient interface
programmer
for using the system
Main Functions of an OS
Process management
Memory management
File management
Security
Command interpretation
Process Management
$END
Data for program
$RUN
$
L
O
A
D
C
O
B
O
L
Ref Page 251 Chapter 14: Operating Systems Slide 9/54
p
Computer Fundamentals: Pradeep K. Sinha & Priti Sinha
Multiprogramming
Uniprogramming: Only one job is processed at a
time and all system resources are available exclusively
for the job until its completion
Multiprogramming: Interleaved execution of two or
more different and independent programs by a
computer
Types of Multiprogramming:
Multiprogramming with fixed tasks (MFT): Fixed
number of jobs can be processed concurrently
Multiprogramming with variable tasks (MVT):
Number of jobs can vary
Area occupied by each job residing simultaneously in
the main memory is known as a memory partition
Job
Uniprogramming System
Main memory
Operating OS area
system
Execution in
progress
CPU
Multiprogramming System
Main memory
Operating system
Job B
Job C
Secondary disk storage (Waiting for CPU)
Execution in
progress
CPU
completed
Large memory
Memory protection
Job status preservation
Proper job mix (CPU and I/O bound jobs)
CPU scheduling
process identifier
process state
program counter
values of various CPU
registers
accounting and scheduling
information
I/O status information
Multitasking
Multithreading
Multithreading System
Address space
Address space
Thread
Thread Thread Thread
Multiprocessing
Main
memory
I/O
I/O Units CPU
Processors
Multiprocessing System
Main
CPU-1 CPU-2
memory
I/O I/O
processors processors
Time-sharing
Job is allocated to
Job
New CPU for Running
Ready execution processing
Job
completed
Allotted time slice is over
I/O completed Job must wait
for I/O
completion
Blocked
Memory Management
Operating system
Operating system area
User process
User area
Unused
Partition 2
User area divided
into n equal- Partition 3
sized partitions
Partition n
The number, size, and location of the partitions vary dynamically as processes come and go.
Virtual Memory
File Management
File Operations
File Naming
Security
Security
Command Interpretation
Command Interpretation
(Continued from previous slide)
UNIX OS
MS-DOS
Microsoft Windows
Microsoft Windows NT
Linux
Keywords/Phrases
Access control Memory management
Batch processing Memory partition
Command interpretation Microsoft Windows
Command-line interface (CLI) Microsoft Windows NT
CPU-bound jobs MS-DOS
Cryptography Multiprocessing
Demand paging Multiprogramming
External security Multiprogramming with fixed tasks (MFT)
File Multiprogramming with variable tasks
File attributes (MVT)
File extensions Operating systems
File management Multithreading
Graphical User Interface (GUI) Process
I/O-bound jobs Process Control Block (PCB)
Internal security Multitasking
Job control language (JCL) Process management
Library programs Random access files
Linux Response time
Loosely coupled system Security
Sequential access files
Swapping
Keywords/Phrases
(Continued from previous slide)
Throughput
Tightly coupled system
Time-sharing
Time slice
Time slot
Translating programs
Turnaround time
Unix
User authentication
Utility programs
Virtual machine
Virtual memory