Operating System - Demo
Operating System - Demo
By ,
Harshitha.H.S
Overview:
• Services
• Properties
Operating System
• Program execution
• I/O operations
• File System manipulation
• Communication
• Error Detection
• Resource Allocation
• Protection
Operating System - Properties
• Multitasking
Multitasking is when multiple jobs are
executed by the CPU simultaneously by
switching between them. Switches occur so
frequently that the users may interact with
each program while it is running.
Operating System – Properties
(Continues)...
Multiprogramming
Sharing the processor, when two or more programs reside in
memory at the same time, is referred as Multiprogramming.
Multiprogramming assumes a single shared processor.
Advantages:-
• High and efficient CPU utilization.
• User feels that many programs are allotted to CPU almost
simultaneously.
Disadvantages:-
• CPU scheduling is required.
• To accommodate many jobs in memory, memory management is
required
Operating System - Multithreading
Multithreading is the ability of a central processing unit
(CPU) to execute multiple processes or threads
concurrently, supported by the operating system.
What is Thread?
A thread is a flow of execution through the process
code, with its own program counter that keeps track of
which instruction to execute next, system registers
which hold its current working variables, and a stack
which contains the execution history.
Advantages of Thread
• Threads minimize the context switching time.
• Use of threads provides concurrency within a
process.
• Efficient communication.
• It is more economical to create and context
switch threads.
Types of Thread