Lecture 4 Chapter 1
Lecture 4 Chapter 1
inspire posterity
Lecture 4
Time-Sharing System
1. Time sharing, or multitasking, is a logical extension of
multiprogramming.
2. Multiple jobs are executed by switching the CPU between
them.
3. In this, the CPU time is shared by different processes, so it is
called as “Time sharing Systems”.
4. Time slice is defined by the OS, for sharing CPU time
between processes.
Examples: Multics, Unix, etc.
10/07/2024 2
discover yourself
inspire posterity
Spooling
Simultaneous Peripheral
Operation On Line
10/07/2024 3
discover yourself
inspire posterity
Two steps
1- Processor reads instructions from memory
• Fetches
2- Decoding-Encoding
3- Processor executes each instruction
• Execution
10/07/2024 4
discover yourself
inspire posterity
10/07/2024 5
discover yourself
inspire posterity
Control Registers
10/07/2024 6
discover yourself
inspire posterity
10/07/2024 7
discover yourself
inspire posterity
10/07/2024 8
discover yourself
inspire posterity
Instruction Cycle
10/07/2024 9
discover yourself
inspire posterity
10/07/2024 10
discover yourself
inspire posterity
10/07/2024 11
discover yourself
inspire posterity
10/07/2024 12
discover yourself
inspire posterity
10/07/2024 13
discover yourself
inspire posterity
10/07/2024 14
discover yourself
inspire posterity
10/07/2024 15
discover yourself
inspire posterity
10/07/2024 16
discover yourself
inspire posterity
10/07/2024 17
discover yourself
inspire posterity
Process
• Process in execution & has address space
• Time sharing concept
• All information about each process is stored in
process table of the OS.
Key process management operations
• Process creation and termination
• A process can create one or more other
processes, referred to as child processes
– Process tree
• A created two child processes, B and C
• B created three child processes, D, E,
and F
10/07/2024 18
discover yourself
inspire posterity
10/07/2024 19
discover yourself
inspire posterity
10/07/2024 20