SlideShare una empresa de Scribd logo
1 de 62
OPERATING SYSTEM
Chapter-4
LETS EXPLORE OS
 Interface between user and the hardware
 Allocates and manages the resources-value
for money
 Reclaim lost resources
 Manages the input, processing and output eg.
Steward in a restaurant
 Transforms a raw piece of hardware into a
machine
 Supports all application software
 Loads programs into main memory
ABSTRACT VIEW OF SYSTEM
COMPONENTS
WHAT AN OS DOES FOR A
LIVING..
loop forever {
run the process for a while.
stop process and save its state.
load state of another process.
}
PROGRAM STATES
DIFFERENCE BETWEEN TYPES
OF PROGRAMS
 Do lot of
computation
 Eg. Programs
computing value of
π
 No wastage of CPU
time
 Do lot of I/O
transactions
 Eg. Online railway
reservation program
 Lot of CPU time is
wasted
COMPUTE BOUNDPROGRAMS I/OBOUNDPROGRAMS
MULTIPROGRAMMING
 Concurrent residency of many programs in the
main memory of the computer
 Reduced CPU idle time-GREATER CPU
EFFICIENCY
 Greater memory efficiency-COMPLETE
MEMORY UTILIZATION
 Eg. of multiprogramming OS are VAX, VMS,
UNIX
WORKING OF OS
FUNCTIONAL UNITS OF AN
OS
FUNCTIONAL UNITS OF AN
OS
 Schedular & resource allocator- decides when
to introduce new programs in memory and the
order of execution
 File manager-manages secondary or magnetic
storage, organizing and accessing data
FUNCTIONAL UNITS OF AN
OS
 I/O handler-manages I/O devices, handles
device errors, device independence, efficient
organization and access of data on I/O
devices
 Memory management-implements
multiprogramming, protection of user work
area, provides memory space to users
 Dispatcher-allocates CPU to next scheduled
program
AN OS IS A RESOURCE
ALLOCATOR
“Mama says: It’s good to share!”
 Multiple users (?) get all computing resources
“simultaneously”:
 Cpu time
 Memory (ram, swap, working set, virtual,..)
 File system (storage space)
 I/O devices (display, printers, mouse,..)
 Clock
 The OS should give every user the illusion that she
is getting all resources to herself (not sharing!)
PROCESSOR MANAGEMENT
 Time sharing scheduling (round robin)-
• Each program has a fixed amount of time to
execute
• After leaving CPU, current program joins at the
end of the queue
• Multiple users share the computer simultaneously
• Gives a feel of dedicated single user system
• Improved response time
• Provides interactive environment
• Resources can be shared
MEMORY MANAGEMENT
 Partitioning –
• To accommodate many programs in memory,
partitioning is done
• Can be fixed size partitions- equal / unequal
• Leads to memory wastage
OS
10K
10K
10K
OS
4K
6K
20K
EQUAL SIZED
PARTITIONS
UNEQUAL SIZED
PARTITIONS
MEMORY MANAGEMENT
Dynamic Memory Relocation-solution to memory
wastage
MEMORY MANAGEMENT
 Dynamic memory relocation
OS
10K-BLANK
6K-PROG B
4K-BLANK
8K-PROG D
2K-BLANK
OS
6K-PROG B
8K-PROG D
16K-BLANK
BEFORE
Memory wastage
AFTER DYNAMIC
RELOCATION
VIRTUAL MEMORY
• Allows writing programs larger than the main
memory
• Gives illusion of very large memory(combo of
auxiliary and main memory)
• Generates a virtual address-that is not a real
physical memory address
• Virtual address can be more than physical
address
• It is the logical / symbolic representation of a
location in hardware
VIRTUAL MEMORY
• OS divides main memory into equal size pages
• Pages and blocks are of same size
• Page is loaded in memory only on demand
• A page table helps keeping track of which page in
memory is storing which block
• Set of pages in main memory is known as
working set.
ADVANTAGES OF VIRTUAL
MEMORY
• Memory efficiency
• Only active pages(on demand) are resident in
the memory
• Any page of any program can fir into any page
of the main memory
• Protection
• There is separate page table for each user
• Sharing
• Same page can be shared by two programs
using the page table settings
DEVICE MANAGEMENT
 OS maintains speed balance between CPU and
I/O device
 Characteristics of I/O devices-
 Speed
 Unit of transfer
 Data representation
 Permissible operations
 Error conditions
 Sharing
BUFFERING
 A temporary storage area (buffers) to read data
from input device or send data to the output
device
 Keeps CPU busy
• Because I /O operation is slow
BUFFERING
• Input Buffering
• When two buffers are used it is known as Double Buffering
BUFFERING
• Output Buffering
SPOOLING
• Simultaneous Peripheral Operation on Line
• Helps buffering process
• Used for non-shareable devices
• Eg. Rush hour on printer
• Process held up--long waiting time
• In spooling data of every user is temporarily
written on hard disk
SPOOLING
• No held up processes
• Spooler pick data one by one from hard disk
• Sends in sequence to the printer
• Hard disk becomes virtual printer
FILE MANAGEMENT
 File organization techniques
• Sequential-in predefined order
• Direct- direct transfer b/w applications without
using OS
• Indexed sequential-data is indexed for fast
retrieval
•Relative - Records of the file are stored one after
another both physically and logically. Record with
sequence number 16 is located just after the 15th
record
FILE MANAGEMENT
 File management functions
• Create file
• Delete file
• Open an existing file-read only
• Open an existing file-read / write
• Rewind operation-tape files
• Security at three levels-DAR
• Do anything
• Append only
• Write only
TYPES OF OS
TIME SHARING SYSTEM
• Multiprogramming, multiuser & interactive OS
• Resources of a centralized system are shared
• Uses round robin scheduling
• Less response time
• Each user gets a feel of a dedicated system
• Only a portion of job resides in main memory,
rest on hard disk
DISTRIBUTED SYSTEMS
 Distribute the computation among several physical
processors.
 Lo o se ly co uple d syste m – each processor has its own
local memory; processors communicate with one
another through various communications lines, such as
high-speed buses or telephone lines.
 Advantages of distributed systems.
 Resources Sharing
 Computation speed up – load sharing
 Reliability
 Communications
DISTRIBUTED SYSTEMS
(CONT)
 Requires networking infrastructure.
 Local area networks (LAN) or Wide area
networks (WAN)
 May be either client-server or peer-to-peer
systems.
REAL-TIME SYSTEMS
 Often used as a control device in a
dedicated application such as
controlling scientific experiments,
medical imaging systems, industrial
control systems, and some display
systems.
 Well-defined fixed-time constraints.
 Real-Time systems may be either hard
or so ft real-time.
REAL-TIME SYSTEMS
(CONT.)
 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
MULTITASKING
 To handle two or more programs at the same
time from a single user’s perception
 CPU can perform only one task at a time,
however it runs so fast that it seems 2 or more
jobs seem to execute at the same time
BATCH PROCESSING
SYSTEM
JOB DESCRIPTION IN JCL
MULTIPROCESSING SYSTEM-
TYPES
MULTIPROCESSING SYSTEM-
TYPES
 Tightly coupled
• Processors share memory and I/O systems
• Shared memory access
• Smoothens information interchange
• Good synchronization among processes
FLYNN’S CLASSIFICATION OF
COMPUTERS
FLYNN’S CLASSIFICATION OF
COMPUTERS
 SIMD-Single instruction multiple data
• Array of n number of processing elements
• Identical elements controlled by master
controller
• Single instruction operates on multiple data
• Eg. Connection machine uses SIMD
architecture
SIMD VERSUS MIMD
Practical Differences
SIMD and MIMD are different in practice. SIMD is often used for
problems requiring lots of computations with processors performing
the same operation in parallel. MIMD is often used for problems
requiring algorithms broken up into parts that are separate and
independent, with each part being assigned to a different processor for
simultaneous solution.
Technical Differences
SIMD and MIMD are also technically different. SIMD processors tend
to be simpler, smaller, cheaper and faster than MIMD processors, but
MIMD is capable of more complex operations. MIMD operations that
the SIMD architecture can accomplish tend to take more time with
SIMD than with using the MIMD architecture. SIMD processors must
perform complex operations sequentially, while MIMD processors can
do this concurrently.
MULTIPROCESSING
CONFIGURATIONS
 Separate supervisor configuration
• Each processor has individual copy of OS
input, output and file system.
• Limited parallel processing is possible
 Master slave configuration
• A master processor controls all processors
and assigns work to them.
• Parallel processing possible
MULTIPROCESSING
CONFIGURATIONS
 Symmetric configuration
• Also known as Floating Master
configuration
• All processors are equal and independent
• Only one processor executes the OS at a
time
• Parallel processing allowed
GUI INTERFACE
 Uses computer graphics to make program
easier to use
 Contains icons for navigation
 Selection done by mouse instead of
commands through keyboard
DIFFERENT TYPES OF OS
OBJECT LINKING &
EMBEDDING

Más contenido relacionado

La actualidad más candente

La actualidad más candente (17)

08 operating system support
08 operating system support08 operating system support
08 operating system support
 
Introduction to operating systems
 Introduction to operating systems Introduction to operating systems
Introduction to operating systems
 
OPERATING SYSTEM
OPERATING SYSTEMOPERATING SYSTEM
OPERATING SYSTEM
 
Processes and operating systems
Processes and operating systemsProcesses and operating systems
Processes and operating systems
 
Operating System - Types Of Operating System Unit-1
Operating System - Types Of Operating System Unit-1Operating System - Types Of Operating System Unit-1
Operating System - Types Of Operating System Unit-1
 
Real time operating system
Real time operating systemReal time operating system
Real time operating system
 
Operating system
Operating systemOperating system
Operating system
 
OSCh14
OSCh14OSCh14
OSCh14
 
BAIT1003 Chapter 6
BAIT1003 Chapter 6BAIT1003 Chapter 6
BAIT1003 Chapter 6
 
Os
OsOs
Os
 
Operating system
Operating systemOperating system
Operating system
 
Operating System Introduction - Definition, Working, Components
Operating System Introduction - Definition, Working, ComponentsOperating System Introduction - Definition, Working, Components
Operating System Introduction - Definition, Working, Components
 
08 operating system support
08 operating system support08 operating system support
08 operating system support
 
Operating System BCA 301
Operating System BCA 301Operating System BCA 301
Operating System BCA 301
 
Introduction to OS.
Introduction to OS.Introduction to OS.
Introduction to OS.
 
Operating System concepts
Operating System conceptsOperating System concepts
Operating System concepts
 
5
55
5
 

Destacado (20)

Ch6 cpu scheduling
Ch6   cpu schedulingCh6   cpu scheduling
Ch6 cpu scheduling
 
Ch12
Ch12Ch12
Ch12
 
3 processes
3 processes3 processes
3 processes
 
3.Process Management
3.Process Management3.Process Management
3.Process Management
 
Ch1
Ch1Ch1
Ch1
 
Ipc
IpcIpc
Ipc
 
Inter process communication
Inter process communicationInter process communication
Inter process communication
 
Inter process communication
Inter process communicationInter process communication
Inter process communication
 
3 process management
3 process management3 process management
3 process management
 
OSCh3
OSCh3OSCh3
OSCh3
 
Unit 7
Unit 7Unit 7
Unit 7
 
Op Sy 03 Ch 23
Op Sy 03 Ch 23Op Sy 03 Ch 23
Op Sy 03 Ch 23
 
Ipc
IpcIpc
Ipc
 
Ch7 OS
Ch7 OSCh7 OS
Ch7 OS
 
OSCh6
OSCh6OSCh6
OSCh6
 
Inter process communication
Inter process communicationInter process communication
Inter process communication
 
Ch3: Operating System Structure
Ch3: Operating System StructureCh3: Operating System Structure
Ch3: Operating System Structure
 
Interprocess Communication
Interprocess CommunicationInterprocess Communication
Interprocess Communication
 
Inter process communication
Inter process communicationInter process communication
Inter process communication
 
Chapter 4 a interprocess communication
Chapter 4 a interprocess communicationChapter 4 a interprocess communication
Chapter 4 a interprocess communication
 

Similar a Chapter 4

introduction to operating system
introduction to operating systemintroduction to operating system
introduction to operating systemHAMZA AHMED
 
Operating System Unit 1
Operating System Unit 1Operating System Unit 1
Operating System Unit 1SanthiNivas
 
Operating system concepts
Operating system conceptsOperating system concepts
Operating system conceptsArnav Chowdhury
 
CSE3120- Module1 part 1 v1.pptx
CSE3120- Module1 part 1 v1.pptxCSE3120- Module1 part 1 v1.pptx
CSE3120- Module1 part 1 v1.pptxakhilagajjala
 
Operating system
Operating systemOperating system
Operating systemVONI
 
MK Sistem Operasi.pdf
MK Sistem Operasi.pdfMK Sistem Operasi.pdf
MK Sistem Operasi.pdfwisard1
 
Operating System DOS and Windows
Operating System DOS and WindowsOperating System DOS and Windows
Operating System DOS and WindowsYasirKhan357
 
EMBEDDED OS
EMBEDDED OSEMBEDDED OS
EMBEDDED OSAJAL A J
 
Computer system architecture
Computer system architectureComputer system architecture
Computer system architecturejeetesh036
 
I/o management and disk scheduling .pptx
I/o management and disk scheduling .pptxI/o management and disk scheduling .pptx
I/o management and disk scheduling .pptxwebip34973
 
os unit 1 (2).pptx. introduction to operating systems
os unit 1 (2).pptx. introduction to operating systemsos unit 1 (2).pptx. introduction to operating systems
os unit 1 (2).pptx. introduction to operating systemsssuser6aef00
 
Components of Computer PARALLEL-PROCESSING.pptx
Components of Computer PARALLEL-PROCESSING.pptxComponents of Computer PARALLEL-PROCESSING.pptx
Components of Computer PARALLEL-PROCESSING.pptxDaveEstonilo
 

Similar a Chapter 4 (20)

introduction to operating system
introduction to operating systemintroduction to operating system
introduction to operating system
 
Operating System Unit 1
Operating System Unit 1Operating System Unit 1
Operating System Unit 1
 
Operating system concepts
Operating system conceptsOperating system concepts
Operating system concepts
 
Operating System
Operating SystemOperating System
Operating System
 
Os notes 1_5
Os notes 1_5Os notes 1_5
Os notes 1_5
 
Operating system
Operating systemOperating system
Operating system
 
CSE3120- Module1 part 1 v1.pptx
CSE3120- Module1 part 1 v1.pptxCSE3120- Module1 part 1 v1.pptx
CSE3120- Module1 part 1 v1.pptx
 
Operating system
Operating systemOperating system
Operating system
 
MK Sistem Operasi.pdf
MK Sistem Operasi.pdfMK Sistem Operasi.pdf
MK Sistem Operasi.pdf
 
Operating System DOS and Windows
Operating System DOS and WindowsOperating System DOS and Windows
Operating System DOS and Windows
 
1_to_10.pdf
1_to_10.pdf1_to_10.pdf
1_to_10.pdf
 
chapter1.ppt
chapter1.pptchapter1.ppt
chapter1.ppt
 
EMBEDDED OS
EMBEDDED OSEMBEDDED OS
EMBEDDED OS
 
Computer system architecture
Computer system architectureComputer system architecture
Computer system architecture
 
Unit I OS.pdf
Unit I OS.pdfUnit I OS.pdf
Unit I OS.pdf
 
EE469-ch1.pptx
EE469-ch1.pptxEE469-ch1.pptx
EE469-ch1.pptx
 
EE469-ch1.pptx
EE469-ch1.pptxEE469-ch1.pptx
EE469-ch1.pptx
 
I/o management and disk scheduling .pptx
I/o management and disk scheduling .pptxI/o management and disk scheduling .pptx
I/o management and disk scheduling .pptx
 
os unit 1 (2).pptx. introduction to operating systems
os unit 1 (2).pptx. introduction to operating systemsos unit 1 (2).pptx. introduction to operating systems
os unit 1 (2).pptx. introduction to operating systems
 
Components of Computer PARALLEL-PROCESSING.pptx
Components of Computer PARALLEL-PROCESSING.pptxComponents of Computer PARALLEL-PROCESSING.pptx
Components of Computer PARALLEL-PROCESSING.pptx
 

Último

IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 

Último (20)

IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 

Chapter 4

  • 2.
  • 3. LETS EXPLORE OS  Interface between user and the hardware  Allocates and manages the resources-value for money  Reclaim lost resources  Manages the input, processing and output eg. Steward in a restaurant  Transforms a raw piece of hardware into a machine  Supports all application software  Loads programs into main memory
  • 4. ABSTRACT VIEW OF SYSTEM COMPONENTS
  • 5. WHAT AN OS DOES FOR A LIVING.. loop forever { run the process for a while. stop process and save its state. load state of another process. }
  • 7.
  • 8. DIFFERENCE BETWEEN TYPES OF PROGRAMS  Do lot of computation  Eg. Programs computing value of π  No wastage of CPU time  Do lot of I/O transactions  Eg. Online railway reservation program  Lot of CPU time is wasted COMPUTE BOUNDPROGRAMS I/OBOUNDPROGRAMS
  • 9. MULTIPROGRAMMING  Concurrent residency of many programs in the main memory of the computer  Reduced CPU idle time-GREATER CPU EFFICIENCY  Greater memory efficiency-COMPLETE MEMORY UTILIZATION  Eg. of multiprogramming OS are VAX, VMS, UNIX
  • 11.
  • 13. FUNCTIONAL UNITS OF AN OS  Schedular & resource allocator- decides when to introduce new programs in memory and the order of execution  File manager-manages secondary or magnetic storage, organizing and accessing data
  • 14. FUNCTIONAL UNITS OF AN OS  I/O handler-manages I/O devices, handles device errors, device independence, efficient organization and access of data on I/O devices  Memory management-implements multiprogramming, protection of user work area, provides memory space to users  Dispatcher-allocates CPU to next scheduled program
  • 15. AN OS IS A RESOURCE ALLOCATOR “Mama says: It’s good to share!”  Multiple users (?) get all computing resources “simultaneously”:  Cpu time  Memory (ram, swap, working set, virtual,..)  File system (storage space)  I/O devices (display, printers, mouse,..)  Clock  The OS should give every user the illusion that she is getting all resources to herself (not sharing!)
  • 16.
  • 17. PROCESSOR MANAGEMENT  Time sharing scheduling (round robin)- • Each program has a fixed amount of time to execute • After leaving CPU, current program joins at the end of the queue • Multiple users share the computer simultaneously • Gives a feel of dedicated single user system • Improved response time • Provides interactive environment • Resources can be shared
  • 18. MEMORY MANAGEMENT  Partitioning – • To accommodate many programs in memory, partitioning is done • Can be fixed size partitions- equal / unequal • Leads to memory wastage OS 10K 10K 10K OS 4K 6K 20K EQUAL SIZED PARTITIONS UNEQUAL SIZED PARTITIONS
  • 19.
  • 20. MEMORY MANAGEMENT Dynamic Memory Relocation-solution to memory wastage
  • 21. MEMORY MANAGEMENT  Dynamic memory relocation OS 10K-BLANK 6K-PROG B 4K-BLANK 8K-PROG D 2K-BLANK OS 6K-PROG B 8K-PROG D 16K-BLANK BEFORE Memory wastage AFTER DYNAMIC RELOCATION
  • 22. VIRTUAL MEMORY • Allows writing programs larger than the main memory • Gives illusion of very large memory(combo of auxiliary and main memory) • Generates a virtual address-that is not a real physical memory address • Virtual address can be more than physical address • It is the logical / symbolic representation of a location in hardware
  • 23. VIRTUAL MEMORY • OS divides main memory into equal size pages • Pages and blocks are of same size • Page is loaded in memory only on demand • A page table helps keeping track of which page in memory is storing which block • Set of pages in main memory is known as working set.
  • 24.
  • 25. ADVANTAGES OF VIRTUAL MEMORY • Memory efficiency • Only active pages(on demand) are resident in the memory • Any page of any program can fir into any page of the main memory • Protection • There is separate page table for each user • Sharing • Same page can be shared by two programs using the page table settings
  • 26. DEVICE MANAGEMENT  OS maintains speed balance between CPU and I/O device  Characteristics of I/O devices-  Speed  Unit of transfer  Data representation  Permissible operations  Error conditions  Sharing
  • 27. BUFFERING  A temporary storage area (buffers) to read data from input device or send data to the output device  Keeps CPU busy • Because I /O operation is slow
  • 28. BUFFERING • Input Buffering • When two buffers are used it is known as Double Buffering
  • 30. SPOOLING • Simultaneous Peripheral Operation on Line • Helps buffering process • Used for non-shareable devices • Eg. Rush hour on printer • Process held up--long waiting time • In spooling data of every user is temporarily written on hard disk
  • 31. SPOOLING • No held up processes • Spooler pick data one by one from hard disk • Sends in sequence to the printer • Hard disk becomes virtual printer
  • 32.
  • 33. FILE MANAGEMENT  File organization techniques • Sequential-in predefined order • Direct- direct transfer b/w applications without using OS • Indexed sequential-data is indexed for fast retrieval •Relative - Records of the file are stored one after another both physically and logically. Record with sequence number 16 is located just after the 15th record
  • 34. FILE MANAGEMENT  File management functions • Create file • Delete file • Open an existing file-read only • Open an existing file-read / write • Rewind operation-tape files • Security at three levels-DAR • Do anything • Append only • Write only
  • 36. TIME SHARING SYSTEM • Multiprogramming, multiuser & interactive OS • Resources of a centralized system are shared • Uses round robin scheduling • Less response time • Each user gets a feel of a dedicated system • Only a portion of job resides in main memory, rest on hard disk
  • 37.
  • 38. DISTRIBUTED SYSTEMS  Distribute the computation among several physical processors.  Lo o se ly co uple d syste m – each processor has its own local memory; processors communicate with one another through various communications lines, such as high-speed buses or telephone lines.  Advantages of distributed systems.  Resources Sharing  Computation speed up – load sharing  Reliability  Communications
  • 39. DISTRIBUTED SYSTEMS (CONT)  Requires networking infrastructure.  Local area networks (LAN) or Wide area networks (WAN)  May be either client-server or peer-to-peer systems.
  • 40.
  • 41. REAL-TIME SYSTEMS  Often used as a control device in a dedicated application such as controlling scientific experiments, medical imaging systems, industrial control systems, and some display systems.  Well-defined fixed-time constraints.  Real-Time systems may be either hard or so ft real-time.
  • 42. REAL-TIME SYSTEMS (CONT.)  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
  • 43. MULTITASKING  To handle two or more programs at the same time from a single user’s perception  CPU can perform only one task at a time, however it runs so fast that it seems 2 or more jobs seem to execute at the same time
  • 45.
  • 47.
  • 49. MULTIPROCESSING SYSTEM- TYPES  Tightly coupled • Processors share memory and I/O systems • Shared memory access • Smoothens information interchange • Good synchronization among processes
  • 50.
  • 52. FLYNN’S CLASSIFICATION OF COMPUTERS  SIMD-Single instruction multiple data • Array of n number of processing elements • Identical elements controlled by master controller • Single instruction operates on multiple data • Eg. Connection machine uses SIMD architecture
  • 53.
  • 54. SIMD VERSUS MIMD Practical Differences SIMD and MIMD are different in practice. SIMD is often used for problems requiring lots of computations with processors performing the same operation in parallel. MIMD is often used for problems requiring algorithms broken up into parts that are separate and independent, with each part being assigned to a different processor for simultaneous solution. Technical Differences SIMD and MIMD are also technically different. SIMD processors tend to be simpler, smaller, cheaper and faster than MIMD processors, but MIMD is capable of more complex operations. MIMD operations that the SIMD architecture can accomplish tend to take more time with SIMD than with using the MIMD architecture. SIMD processors must perform complex operations sequentially, while MIMD processors can do this concurrently.
  • 55.
  • 56. MULTIPROCESSING CONFIGURATIONS  Separate supervisor configuration • Each processor has individual copy of OS input, output and file system. • Limited parallel processing is possible  Master slave configuration • A master processor controls all processors and assigns work to them. • Parallel processing possible
  • 57. MULTIPROCESSING CONFIGURATIONS  Symmetric configuration • Also known as Floating Master configuration • All processors are equal and independent • Only one processor executes the OS at a time • Parallel processing allowed
  • 58.
  • 59. GUI INTERFACE  Uses computer graphics to make program easier to use  Contains icons for navigation  Selection done by mouse instead of commands through keyboard
  • 61.