OS Unit 1
OS Unit 1
Ghaziabad
OPERATING SYSTEM(KCS-401)
Unit: 1 Faculty
Passport
Size
photo
Faculty Name
Course Details
RAVISHANKAR PAL
B.TECH/4th SEM
1
Faculty Information
Faculty
NAME:- Mr. RAVISHANKAR PAL, Passport Size
DEPARTMENT:- CSE(IOT), photo
MO NO:- 7903864510,
EMAIL ID:- [email protected],
QUALIFICATION:- B.TECH, M.TECH,
EXPERTISE IN SUBJECT:-OS, DSTL, DBMS, DATA STRUCTURE,
INTERSTED AREA:-MACHINE LEARNING,
PATENT:-IOT ENABLED PRESSURE COOKER TO CONTRAL THE
TEMPRATURE USING CELL PHONE,
PAPER1:- FACE RECOGNITION,
PAPER2:- BASED ON A MIX OF VISUAL MOTION, AND DEPTH
SALIENCY, SALIENCY MAPS FOR STEREOSCOPIC VIDEO ARE
DETECTED,
OPERATING 2 25 25 50 1
SYSTEM LAB
(KCS451)
15CS64.1 1 - - - - - - - - - - 2 - 2 -
15CS64.2 1 1 - - - - - - - - - 2 - 2 -
15CS64.3 1 1 - - - - - - - - - 2 - 2 -
15CS64.4 1 1 - - - - - - - - - 2 - 2 -
15CS64.5 1 1 - - - - - - - - - 2 - 2 -
User
program
area
Multiprogramming:
OS
• Figuredepicts the layout of
Job 1 multiprogramming system.
• The main memory consists of 5
Job 2 jobs at a time, the CPU executes
one by one.
Job 3
Advantages:
Job 4 •Efficient memory utilization
•Throughput increases
Job 5
•CPU is never idle, so
performance increases.
OS Features Needed for Multiprogramming
• Hard real-time:
– Secondary storage limited or absent, data stored in
short term memory, or read-only memory (ROM)
– Conflicts with time-sharing systems, not supported by
general-purpose operating systems.
• Soft real-time
– Limited utility in industrial control of robotics
– Useful in applications (multimedia, virtual reality)
requiring advanced operating-system features.
Embedded Operating Systems
monitor user
set user mode
• System Components
• Operating System Services
• System Calls
• System Programs
• System Structure
• Virtual Machines
• System Design and Implementation
• System Generation
Common System Components
• Process Management
• Main Memory Management
• File Management
• I/O System Management
• Secondary Management
• Networking
• Protection System
• Command-Interpreter System
Process Management
• A process is a program in execution. A process needs
certain resources, including CPU time, memory, files,
and I/O devices, to accomplish its task.
• The operating system is responsible for the following
activities in connection with process management.
– Process creation and deletion.
– process suspension and resumption.
– Provision of mechanisms for:
• process synchronization
• process communication
Main-Memory Management
• Memory is a large array of words or bytes, each with its
own address. It is a repository of quickly accessible data
shared by the CPU and I/O devices.
• Main memory is a volatile storage device. It loses its
contents in the case of system failure.
• The operating system is responsible for the following
activities in connections with memory management:
– Keep track of which parts of memory are currently being
used and by whom.
– Decide which processes to load when memory space
becomes available.
– Allocate and deallocate memory space as needed.
File Management
• A file is a collection of related information defined by
its creator. Commonly, files represent programs (both
source and object forms) and data.
• The operating system is responsible for the following
activities in connections with file management:
– File creation and deletion.
– Directory creation and deletion.
– Support of primitives for manipulating files and directories.
– Mapping files onto secondary storage.
– File backup on stable (nonvolatile) storage media.
I/O System Management
• The I/O system consists of:
– A buffer-caching system
– A general device-driver interface
– Drivers for specific hardware devices
Secondary-Storage Management
• Since main memory (primary storage) is volatile and too
small to accommodate all data and programs
permanently, the computer system must provide
secondary storage to back up main memory.
• Most modern computer systems use disks as the
principle on-line storage medium, for both programs and
data.
• The operating system is responsible for the following
activities in connection with disk management:
– Free space management
– Storage allocation
– Disk scheduling
Networking (Distributed Systems)
• A distributed system is a collection processors that do
not share memory or a clock. Each processor has its
own local memory.
• The processors in the system are connected through a
communication network.
• Communication takes place using a protocol.
• A distributed system provides user access to various
system resources.
• Access to a shared resource allows:
– Computation speed-up
– Increased data availability
– Enhanced reliability
Protection System
• Protection refers to a mechanism for controlling
access by programs, processes, or users to both
system and user resources.
• The protection mechanism must:
– distinguish between authorized and unauthorized
usage.
– specify the controls to be imposed.
– provide a means of enforcement.
Command-Interpreter System
• Many commands are given to the operating
system by control statements which deal with:
– process creation and management
– I/O handling
– secondary-storage management
– main-memory management
– file-system access
– protection
– networking
Command-Interpreter System (Cont.)
– command-line interpreter
– shell (in UNIX)
USER MODE
KERNEL MODE
Excp Intr Intr
Time Intr
• Re-entrant kernel: Several processes may
be in Kernel Mode at the same time
– A re-entrant kernel is able to suspend the current running
process even if it is in the Kernel Mode
• Note: Traps are a type of exceptions.
Re-entrant Kernels
USER MODE
KERNEL MODE
Excp Intr Intr
USER MODE
KERNEL MODE
Excp Intr Intr