CS 3220: Operating Systems: Instructor
CS 3220: Operating Systems: Instructor
OPERATING SYSTEMS
LECTURE 1
INSTRUCTOR:
OSAMA AHMED KHAN
A S S I S T A N T P R O F E S S O R , D E PA R T M E N T O F C O M P U T E R
SCIENCE, MAJU
osamaahmedkhan MAR 2ND, 2021
PROCESSES
• Unix
• Process Group
• Information is delivered to all members of the group
• Each member might take different action on receiving the information
• Root process – init
• Parent process can not disinherit a Child process
• Windows
• Process Tree
• Parent process is given a token (handle) to control the Child process
• Parent process can disinherit a Child process by passing the token to
some other process
PROCESS STATES
• Running
• Using the Processor
• Ready
• Waiting for its turn to use the Processor
• Resource problem
• Blocked
• Waiting for complete input in order to be ready
• Inherent problem
PROCESS STATES
IMPLEMENTATION OF PROCESSES
• Interrupt Vector
• Small part of Memory
• Contains address of Interrupt Service Procedure
• Interrupt Hardware
• Moves a Process’ PCBs onto Stack on receiving an Interrupt
• Moves back the Process’ PCBs from temporary Stack on finishing
the Interrupt request
• Increases
CPU Utilization
• On average a Process requires 20% of the CPU time
• How many Processes are required to make the CPU
completely busy?
• What
if the Processes are considered Dependent?
• In a computer with 8GB Memory, with the OS taking up 2GB
and each User Process also taking up 2GB,
• How many User Processes can exist concurrently?
• If , calculate CPU Utilization and CPU Waste
• If another 8GB Memory is added into the system,
• How many User Processes can exist concurrently?
• What will be the Throughput?
• If another 8GB Memory is added into the system,
• What will be the Throughput?
• What is the reason behind change in increase in Throughput for
same changes made into the system?