SlideShare a Scribd company logo
1 of 17
Operating System
Operating System
Functions of OS
ā€¢ scheduler (time allocation to programs) ,
ā€¢ synchronizer ( avoid conflicts for a
resource at the same time)
ā€¢ memory manager (space allocation to
programs)
Scheduling
ā€¢ Scheduling Algo
ā€¢ basically utilize IO time by scheduling another
task
ā€¢ Switching from one thread to another (A --> B )
can occur when
a) A is complete
b) A is blocked on IO
c) Timer interrupt forcefully preempts A
SCHEDULER
Synchronization
ā€¢ Synchronization is needed as process need to
exchange information using a shared region in memory.
ā€¢ However, this shared region cannot be accessed in any
manner. They needed to be accessed in correct
sequence
Synchronization
The code accessing Shared Data is called Critical
Section
No more than one process can access shared data
at a given time
Critical Sections must obey mutual exclusion
Synchronization
ā€¢ How to ensure Mutual exclusion (only
one process is in critical section)
ā€¢ Disable interrupts
ā€¢ Test and set instructions
ā€¢ Semaphore
Synchronization
ā€¢ Semaphores
ā€¢ Used to solve Producer Consumer
problems
ā€¢ Producer consumer problems occur for
example in networks (sending and
receiving packets), unix shell IO
Synchronization
ā€¢ Producer Code
down(empty_slot)
put item in buffer
up(full_slot)
Synchronization
ā€¢ The above solution works for a single producer
consumer
ā€¢ When multiple producers and consumers are
present , then a race condition can happen
resulting in writing to the same slot by two
different producers
ā€¢ To overcome this problem, we need to make
sure that only one producer is executing "put
item in buffer". So we need to execute mutual
exclusion within a critical section
Synchronization
ā€¢ down(empty_slot)
ā€¢ down(mutex)
ā€¢ put item in buffer
ā€¢ up(mutex)
ā€¢ up(full_slot)
Memory Management
ā€¢ How to run process when not enough
physical memory?
ā€¢ How to protect one process from
accessing anotherā€™s memory
Memory Management
ā€¢ How to run process when not enough physical memory?
ā€¢ How to protect one process from accessing anotherā€™s
memory
VIRTUAL MEMORY provides illusion of
more memory
Each process access only a window of
memory ā€“ due to Locality of Reference
Only a small portion of address space must
be in physical memory
Memory Management
ā€¢ Each layer acts as ā€œbacking storeā€ for layer above
disk storage
main memory
cache
registers
size
speed cost
vpn ā€¦
vpn 3
vpn 2
vpn 1
vpn 0
P1
Virtual
pages
Frame # Present bit
ā€¦ ā€¦
Blk 1031 0
Blk 1030 0
Fr # 15 1
Blk 1030
ā€¦
Blk 1031
Fr #15
Fr #16
Fr # 16 1
ā€¦
PAGE TABLE
Memory Management
Page Replacement

More Related Content

What's hot

Functional? Reactive? Why?
Functional? Reactive? Why?Functional? Reactive? Why?
Functional? Reactive? Why?Aleksandr Tavgen
Ā 
SNIA SDC 2016 final
SNIA SDC 2016 finalSNIA SDC 2016 final
SNIA SDC 2016 finalDan Lambright
Ā 
Lecture4
Lecture4Lecture4
Lecture4Asad Abbas
Ā 
How to Install and Use MMS
How to Install and Use MMSHow to Install and Use MMS
How to Install and Use MMSMongoDB
Ā 
Vm mobility
Vm mobilityVm mobility
Vm mobilityhypervnu
Ā 
Automate MongoDB with MongoDB Management Service
Automate MongoDB with MongoDB Management ServiceAutomate MongoDB with MongoDB Management Service
Automate MongoDB with MongoDB Management ServiceMongoDB
Ā 
Webinar: Backups and Disaster Recovery
Webinar: Backups and Disaster RecoveryWebinar: Backups and Disaster Recovery
Webinar: Backups and Disaster RecoveryMongoDB
Ā 
DB Latency Using DRAM + PMem in App Direct & Memory Modes
DB Latency Using DRAM + PMem in App Direct & Memory ModesDB Latency Using DRAM + PMem in App Direct & Memory Modes
DB Latency Using DRAM + PMem in App Direct & Memory ModesScyllaDB
Ā 
Serve like a boss (part one)
Serve like a boss (part one)Serve like a boss (part one)
Serve like a boss (part one)Hamed Nemati
Ā 
Scaling the server side of occasionally-connected, mobile systems with MongoDB
Scaling the server side of occasionally-connected, mobile systems with MongoDBScaling the server side of occasionally-connected, mobile systems with MongoDB
Scaling the server side of occasionally-connected, mobile systems with MongoDBThomas Huber
Ā 
Database , 13 Replication
Database , 13 ReplicationDatabase , 13 Replication
Database , 13 ReplicationAli Usman
Ā 
MongoDB Management Service (MMS): Session 01: Getting Started with MMS
MongoDB Management Service (MMS): Session 01: Getting Started with MMSMongoDB Management Service (MMS): Session 01: Getting Started with MMS
MongoDB Management Service (MMS): Session 01: Getting Started with MMSMongoDB
Ā 
Backing Up Data with MMS
Backing Up Data with MMSBacking Up Data with MMS
Backing Up Data with MMSMongoDB
Ā 
40 demand paging
40 demand paging40 demand paging
40 demand pagingmyrajendra
Ā 

What's hot (16)

Functional? Reactive? Why?
Functional? Reactive? Why?Functional? Reactive? Why?
Functional? Reactive? Why?
Ā 
SNIA SDC 2016 final
SNIA SDC 2016 finalSNIA SDC 2016 final
SNIA SDC 2016 final
Ā 
Lecture4
Lecture4Lecture4
Lecture4
Ā 
How to Install and Use MMS
How to Install and Use MMSHow to Install and Use MMS
How to Install and Use MMS
Ā 
Vm mobility
Vm mobilityVm mobility
Vm mobility
Ā 
Automate MongoDB with MongoDB Management Service
Automate MongoDB with MongoDB Management ServiceAutomate MongoDB with MongoDB Management Service
Automate MongoDB with MongoDB Management Service
Ā 
Webinar: Backups and Disaster Recovery
Webinar: Backups and Disaster RecoveryWebinar: Backups and Disaster Recovery
Webinar: Backups and Disaster Recovery
Ā 
DB Latency Using DRAM + PMem in App Direct & Memory Modes
DB Latency Using DRAM + PMem in App Direct & Memory ModesDB Latency Using DRAM + PMem in App Direct & Memory Modes
DB Latency Using DRAM + PMem in App Direct & Memory Modes
Ā 
Serve like a boss (part one)
Serve like a boss (part one)Serve like a boss (part one)
Serve like a boss (part one)
Ā 
Scaling the server side of occasionally-connected, mobile systems with MongoDB
Scaling the server side of occasionally-connected, mobile systems with MongoDBScaling the server side of occasionally-connected, mobile systems with MongoDB
Scaling the server side of occasionally-connected, mobile systems with MongoDB
Ā 
Database , 13 Replication
Database , 13 ReplicationDatabase , 13 Replication
Database , 13 Replication
Ā 
MongoDB Management Service (MMS): Session 01: Getting Started with MMS
MongoDB Management Service (MMS): Session 01: Getting Started with MMSMongoDB Management Service (MMS): Session 01: Getting Started with MMS
MongoDB Management Service (MMS): Session 01: Getting Started with MMS
Ā 
Virtual memory ,Allocaton of frame & Trashing
Virtual memory  ,Allocaton of frame & TrashingVirtual memory  ,Allocaton of frame & Trashing
Virtual memory ,Allocaton of frame & Trashing
Ā 
Backing Up Data with MMS
Backing Up Data with MMSBacking Up Data with MMS
Backing Up Data with MMS
Ā 
40 demand paging
40 demand paging40 demand paging
40 demand paging
Ā 
Virtual Memory
Virtual MemoryVirtual Memory
Virtual Memory
Ā 

Viewers also liked

Parker Office Synch
Parker Office SynchParker Office Synch
Parker Office SynchKeith Johnson
Ā 
CS9222 ADVANCED OPERATING SYSTEMS
CS9222 ADVANCED OPERATING SYSTEMSCS9222 ADVANCED OPERATING SYSTEMS
CS9222 ADVANCED OPERATING SYSTEMSKathirvel Ayyaswamy
Ā 
Seminar on synchronization to infinite bus
Seminar on synchronization to infinite busSeminar on synchronization to infinite bus
Seminar on synchronization to infinite busSHRADDHA ARON
Ā 
The Simple Scheduler in Embedded System @ OSDC.TW 2014
The Simple Scheduler in Embedded System @ OSDC.TW 2014The Simple Scheduler in Embedded System @ OSDC.TW 2014
The Simple Scheduler in Embedded System @ OSDC.TW 2014Jian-Hong Pan
Ā 
SYNCHRONIZATION
SYNCHRONIZATIONSYNCHRONIZATION
SYNCHRONIZATIONatanuanwesha
Ā 
Process Synchronization And Deadlocks
Process Synchronization And DeadlocksProcess Synchronization And Deadlocks
Process Synchronization And Deadlockstech2click
Ā 
Unit II - 3 - Operating System - Process Synchronization
Unit II - 3 - Operating System - Process SynchronizationUnit II - 3 - Operating System - Process Synchronization
Unit II - 3 - Operating System - Process Synchronizationcscarcas
Ā 
Synchronization Pradeep K Sinha
Synchronization Pradeep K SinhaSynchronization Pradeep K Sinha
Synchronization Pradeep K SinhaJawwad Rafiq
Ā 
Synchronization in distributed systems
Synchronization in distributed systems Synchronization in distributed systems
Synchronization in distributed systems SHATHAN
Ā 
Process synchronization in Operating Systems
Process synchronization in Operating SystemsProcess synchronization in Operating Systems
Process synchronization in Operating SystemsRitu Ranjan Shrivastwa
Ā 
Chapter 6 - Process Synchronization
Chapter 6 - Process SynchronizationChapter 6 - Process Synchronization
Chapter 6 - Process SynchronizationWayne Jones Jnr
Ā 
Insider operating system
Insider   operating systemInsider   operating system
Insider operating systemAditi Saxena
Ā 
Operating Systems and Memory Management
Operating Systems and Memory ManagementOperating Systems and Memory Management
Operating Systems and Memory Managementguest1415ae65
Ā 
Operating Systems
Operating SystemsOperating Systems
Operating SystemsHarshith Meela
Ā 
Construction equipments - Introduction and Classification
Construction equipments - Introduction and ClassificationConstruction equipments - Introduction and Classification
Construction equipments - Introduction and ClassificationSagar Radadiya
Ā 

Viewers also liked (17)

Parker Office Synch
Parker Office SynchParker Office Synch
Parker Office Synch
Ā 
Os
OsOs
Os
Ā 
os lacture
os lactureos lacture
os lacture
Ā 
CS9222 ADVANCED OPERATING SYSTEMS
CS9222 ADVANCED OPERATING SYSTEMSCS9222 ADVANCED OPERATING SYSTEMS
CS9222 ADVANCED OPERATING SYSTEMS
Ā 
Seminar on synchronization to infinite bus
Seminar on synchronization to infinite busSeminar on synchronization to infinite bus
Seminar on synchronization to infinite bus
Ā 
The Simple Scheduler in Embedded System @ OSDC.TW 2014
The Simple Scheduler in Embedded System @ OSDC.TW 2014The Simple Scheduler in Embedded System @ OSDC.TW 2014
The Simple Scheduler in Embedded System @ OSDC.TW 2014
Ā 
SYNCHRONIZATION
SYNCHRONIZATIONSYNCHRONIZATION
SYNCHRONIZATION
Ā 
Process Synchronization And Deadlocks
Process Synchronization And DeadlocksProcess Synchronization And Deadlocks
Process Synchronization And Deadlocks
Ā 
Unit II - 3 - Operating System - Process Synchronization
Unit II - 3 - Operating System - Process SynchronizationUnit II - 3 - Operating System - Process Synchronization
Unit II - 3 - Operating System - Process Synchronization
Ā 
Synchronization Pradeep K Sinha
Synchronization Pradeep K SinhaSynchronization Pradeep K Sinha
Synchronization Pradeep K Sinha
Ā 
Synchronization in distributed systems
Synchronization in distributed systems Synchronization in distributed systems
Synchronization in distributed systems
Ā 
Process synchronization in Operating Systems
Process synchronization in Operating SystemsProcess synchronization in Operating Systems
Process synchronization in Operating Systems
Ā 
Chapter 6 - Process Synchronization
Chapter 6 - Process SynchronizationChapter 6 - Process Synchronization
Chapter 6 - Process Synchronization
Ā 
Insider operating system
Insider   operating systemInsider   operating system
Insider operating system
Ā 
Operating Systems and Memory Management
Operating Systems and Memory ManagementOperating Systems and Memory Management
Operating Systems and Memory Management
Ā 
Operating Systems
Operating SystemsOperating Systems
Operating Systems
Ā 
Construction equipments - Introduction and Classification
Construction equipments - Introduction and ClassificationConstruction equipments - Introduction and Classification
Construction equipments - Introduction and Classification
Ā 

Similar to Operating system

Intro Basic of OS .ppt
Intro Basic of OS .pptIntro Basic of OS .ppt
Intro Basic of OS .pptVarsha506533
Ā 
08 operating system support
08 operating system support08 operating system support
08 operating system supportSher Shah Merkhel
Ā 
08 operating system support
08 operating system support08 operating system support
08 operating system supportdilip kumar
Ā 
08 operating system support
08 operating system support08 operating system support
08 operating system supportBitta_man
Ā 
08 operating system support
08 operating system support08 operating system support
08 operating system supportAnwal Mirza
Ā 
Caching your rails application
Caching your rails applicationCaching your rails application
Caching your rails applicationArrrrCamp
Ā 
Memory Management Strategies - II.pdf
Memory Management Strategies - II.pdfMemory Management Strategies - II.pdf
Memory Management Strategies - II.pdfHarika Pudugosula
Ā 
Virtual Memory Management Part - I.pdf
Virtual Memory Management Part - I.pdfVirtual Memory Management Part - I.pdf
Virtual Memory Management Part - I.pdfHarika Pudugosula
Ā 
Interactions complicate debugging
Interactions complicate debuggingInteractions complicate debugging
Interactions complicate debuggingSyed Zaid Irshad
Ā 
The Economies of Scaling Software
The Economies of Scaling SoftwareThe Economies of Scaling Software
The Economies of Scaling SoftwareAbdelmonaim Remani
Ā 
MK Sistem Operasi.pdf
MK Sistem Operasi.pdfMK Sistem Operasi.pdf
MK Sistem Operasi.pdfwisard1
Ā 
The economies of scaling software - Abdel Remani
The economies of scaling software - Abdel RemaniThe economies of scaling software - Abdel Remani
The economies of scaling software - Abdel Remanijaxconf
Ā 
Memory Management.pdf
Memory Management.pdfMemory Management.pdf
Memory Management.pdfSujanTimalsina5
Ā 
Lecture 8- Virtual Memory Final.pptx
Lecture 8- Virtual Memory Final.pptxLecture 8- Virtual Memory Final.pptx
Lecture 8- Virtual Memory Final.pptxAmanuelmergia
Ā 
Memory Management in Operating Systems for all
Memory Management in Operating Systems for allMemory Management in Operating Systems for all
Memory Management in Operating Systems for allVSKAMCSPSGCT
Ā 
Memory management
Memory managementMemory management
Memory managementPATELARCH
Ā 

Similar to Operating system (20)

Intro Basic of OS .ppt
Intro Basic of OS .pptIntro Basic of OS .ppt
Intro Basic of OS .ppt
Ā 
08 operating system support
08 operating system support08 operating system support
08 operating system support
Ā 
Os unit 3
Os unit 3Os unit 3
Os unit 3
Ā 
08 operating system support
08 operating system support08 operating system support
08 operating system support
Ā 
08 operating system support
08 operating system support08 operating system support
08 operating system support
Ā 
08 operating system support
08 operating system support08 operating system support
08 operating system support
Ā 
Caching your rails application
Caching your rails applicationCaching your rails application
Caching your rails application
Ā 
Memory Management Strategies - II.pdf
Memory Management Strategies - II.pdfMemory Management Strategies - II.pdf
Memory Management Strategies - II.pdf
Ā 
Thread
ThreadThread
Thread
Ā 
OS UNIT4.pptx
OS UNIT4.pptxOS UNIT4.pptx
OS UNIT4.pptx
Ā 
Virtual Memory Management Part - I.pdf
Virtual Memory Management Part - I.pdfVirtual Memory Management Part - I.pdf
Virtual Memory Management Part - I.pdf
Ā 
Interactions complicate debugging
Interactions complicate debuggingInteractions complicate debugging
Interactions complicate debugging
Ā 
The Economies of Scaling Software
The Economies of Scaling SoftwareThe Economies of Scaling Software
The Economies of Scaling Software
Ā 
MK Sistem Operasi.pdf
MK Sistem Operasi.pdfMK Sistem Operasi.pdf
MK Sistem Operasi.pdf
Ā 
The economies of scaling software - Abdel Remani
The economies of scaling software - Abdel RemaniThe economies of scaling software - Abdel Remani
The economies of scaling software - Abdel Remani
Ā 
Memory Management.pdf
Memory Management.pdfMemory Management.pdf
Memory Management.pdf
Ā 
Mini-Training: To cache or not to cache
Mini-Training: To cache or not to cacheMini-Training: To cache or not to cache
Mini-Training: To cache or not to cache
Ā 
Lecture 8- Virtual Memory Final.pptx
Lecture 8- Virtual Memory Final.pptxLecture 8- Virtual Memory Final.pptx
Lecture 8- Virtual Memory Final.pptx
Ā 
Memory Management in Operating Systems for all
Memory Management in Operating Systems for allMemory Management in Operating Systems for all
Memory Management in Operating Systems for all
Ā 
Memory management
Memory managementMemory management
Memory management
Ā 

More from Arvind Devaraj

Deep learning for NLP and Transformer
 Deep learning for NLP  and Transformer Deep learning for NLP  and Transformer
Deep learning for NLP and TransformerArvind Devaraj
Ā 
NLP using transformers
NLP using transformers NLP using transformers
NLP using transformers Arvind Devaraj
Ā 
Nodejs presentation
Nodejs presentationNodejs presentation
Nodejs presentationArvind Devaraj
Ā 
Career hunt pitch
Career hunt pitchCareer hunt pitch
Career hunt pitchArvind Devaraj
Ā 
Career options for CS and IT students
Career options for CS and IT studentsCareer options for CS and IT students
Career options for CS and IT studentsArvind Devaraj
Ā 
Careerhunt ebook
Careerhunt ebookCareerhunt ebook
Careerhunt ebookArvind Devaraj
Ā 
Static Analysis of Computer programs
Static Analysis of Computer programs Static Analysis of Computer programs
Static Analysis of Computer programs Arvind Devaraj
Ā 
Yourstory Android Workshop
Yourstory Android WorkshopYourstory Android Workshop
Yourstory Android WorkshopArvind Devaraj
Ā 
Android High performance in GPU using opengles and renderscript
Android High performance in GPU using opengles and renderscriptAndroid High performance in GPU using opengles and renderscript
Android High performance in GPU using opengles and renderscriptArvind Devaraj
Ā 
OpenGLES Android Graphics
OpenGLES Android GraphicsOpenGLES Android Graphics
OpenGLES Android GraphicsArvind Devaraj
Ā 
Broadcast Receiver
Broadcast ReceiverBroadcast Receiver
Broadcast ReceiverArvind Devaraj
Ā 
AIDL - Android Interface Definition Language
AIDL  - Android Interface Definition LanguageAIDL  - Android Interface Definition Language
AIDL - Android Interface Definition LanguageArvind Devaraj
Ā 
NDK Programming in Android
NDK Programming in AndroidNDK Programming in Android
NDK Programming in AndroidArvind Devaraj
Ā 
Google Cloud Messaging
Google Cloud MessagingGoogle Cloud Messaging
Google Cloud MessagingArvind Devaraj
Ā 
OpenGLES - Graphics Programming in Android
OpenGLES - Graphics Programming in Android OpenGLES - Graphics Programming in Android
OpenGLES - Graphics Programming in Android Arvind Devaraj
Ā 
Sorting (introduction)
 Sorting (introduction) Sorting (introduction)
Sorting (introduction)Arvind Devaraj
Ā 
Data structures (introduction)
 Data structures (introduction) Data structures (introduction)
Data structures (introduction)Arvind Devaraj
Ā 
Graphics programming in open gl
Graphics programming in open glGraphics programming in open gl
Graphics programming in open glArvind Devaraj
Ā 
Signal Processing Introduction using Fourier Transforms
Signal Processing Introduction using Fourier TransformsSignal Processing Introduction using Fourier Transforms
Signal Processing Introduction using Fourier TransformsArvind Devaraj
Ā 

More from Arvind Devaraj (20)

Deep learning for NLP and Transformer
 Deep learning for NLP  and Transformer Deep learning for NLP  and Transformer
Deep learning for NLP and Transformer
Ā 
NLP using transformers
NLP using transformers NLP using transformers
NLP using transformers
Ā 
Nodejs presentation
Nodejs presentationNodejs presentation
Nodejs presentation
Ā 
Career hunt pitch
Career hunt pitchCareer hunt pitch
Career hunt pitch
Ā 
Career options for CS and IT students
Career options for CS and IT studentsCareer options for CS and IT students
Career options for CS and IT students
Ā 
Careerhunt ebook
Careerhunt ebookCareerhunt ebook
Careerhunt ebook
Ā 
Static Analysis of Computer programs
Static Analysis of Computer programs Static Analysis of Computer programs
Static Analysis of Computer programs
Ā 
Hyperbook
HyperbookHyperbook
Hyperbook
Ā 
Yourstory Android Workshop
Yourstory Android WorkshopYourstory Android Workshop
Yourstory Android Workshop
Ā 
Android High performance in GPU using opengles and renderscript
Android High performance in GPU using opengles and renderscriptAndroid High performance in GPU using opengles and renderscript
Android High performance in GPU using opengles and renderscript
Ā 
OpenGLES Android Graphics
OpenGLES Android GraphicsOpenGLES Android Graphics
OpenGLES Android Graphics
Ā 
Broadcast Receiver
Broadcast ReceiverBroadcast Receiver
Broadcast Receiver
Ā 
AIDL - Android Interface Definition Language
AIDL  - Android Interface Definition LanguageAIDL  - Android Interface Definition Language
AIDL - Android Interface Definition Language
Ā 
NDK Programming in Android
NDK Programming in AndroidNDK Programming in Android
NDK Programming in Android
Ā 
Google Cloud Messaging
Google Cloud MessagingGoogle Cloud Messaging
Google Cloud Messaging
Ā 
OpenGLES - Graphics Programming in Android
OpenGLES - Graphics Programming in Android OpenGLES - Graphics Programming in Android
OpenGLES - Graphics Programming in Android
Ā 
Sorting (introduction)
 Sorting (introduction) Sorting (introduction)
Sorting (introduction)
Ā 
Data structures (introduction)
 Data structures (introduction) Data structures (introduction)
Data structures (introduction)
Ā 
Graphics programming in open gl
Graphics programming in open glGraphics programming in open gl
Graphics programming in open gl
Ā 
Signal Processing Introduction using Fourier Transforms
Signal Processing Introduction using Fourier TransformsSignal Processing Introduction using Fourier Transforms
Signal Processing Introduction using Fourier Transforms
Ā 

Recently uploaded

Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
Ā 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
Ā 
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
Ā 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
Ā 
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
Ā 
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
Ā 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
Ā 
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
Ā 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
Ā 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
Ā 
šŸ¬ The future of MySQL is Postgres šŸ˜
šŸ¬  The future of MySQL is Postgres   šŸ˜šŸ¬  The future of MySQL is Postgres   šŸ˜
šŸ¬ The future of MySQL is Postgres šŸ˜RTylerCroy
Ā 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
Ā 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
Ā 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
Ā 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
Ā 
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
Ā 
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
Ā 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
Ā 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
Ā 
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
Ā 

Recently uploaded (20)

Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
Ā 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
Ā 
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
Ā 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Ā 
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
Ā 
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
Ā 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
Ā 
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
Ā 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Ā 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
Ā 
šŸ¬ The future of MySQL is Postgres šŸ˜
šŸ¬  The future of MySQL is Postgres   šŸ˜šŸ¬  The future of MySQL is Postgres   šŸ˜
šŸ¬ The future of MySQL is Postgres šŸ˜
Ā 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
Ā 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
Ā 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
Ā 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Ā 
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
Ā 
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
Ā 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Ā 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
Ā 
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
Ā 

Operating system

  • 2. Operating System Functions of OS ā€¢ scheduler (time allocation to programs) , ā€¢ synchronizer ( avoid conflicts for a resource at the same time) ā€¢ memory manager (space allocation to programs)
  • 3. Scheduling ā€¢ Scheduling Algo ā€¢ basically utilize IO time by scheduling another task ā€¢ Switching from one thread to another (A --> B ) can occur when a) A is complete b) A is blocked on IO c) Timer interrupt forcefully preempts A
  • 5. Synchronization ā€¢ Synchronization is needed as process need to exchange information using a shared region in memory. ā€¢ However, this shared region cannot be accessed in any manner. They needed to be accessed in correct sequence
  • 6. Synchronization The code accessing Shared Data is called Critical Section No more than one process can access shared data at a given time Critical Sections must obey mutual exclusion
  • 7. Synchronization ā€¢ How to ensure Mutual exclusion (only one process is in critical section) ā€¢ Disable interrupts ā€¢ Test and set instructions ā€¢ Semaphore
  • 8. Synchronization ā€¢ Semaphores ā€¢ Used to solve Producer Consumer problems ā€¢ Producer consumer problems occur for example in networks (sending and receiving packets), unix shell IO
  • 10. Synchronization ā€¢ The above solution works for a single producer consumer ā€¢ When multiple producers and consumers are present , then a race condition can happen resulting in writing to the same slot by two different producers ā€¢ To overcome this problem, we need to make sure that only one producer is executing "put item in buffer". So we need to execute mutual exclusion within a critical section
  • 11. Synchronization ā€¢ down(empty_slot) ā€¢ down(mutex) ā€¢ put item in buffer ā€¢ up(mutex) ā€¢ up(full_slot)
  • 12. Memory Management ā€¢ How to run process when not enough physical memory? ā€¢ How to protect one process from accessing anotherā€™s memory
  • 13. Memory Management ā€¢ How to run process when not enough physical memory? ā€¢ How to protect one process from accessing anotherā€™s memory VIRTUAL MEMORY provides illusion of more memory Each process access only a window of memory ā€“ due to Locality of Reference Only a small portion of address space must be in physical memory
  • 14. Memory Management ā€¢ Each layer acts as ā€œbacking storeā€ for layer above disk storage main memory cache registers size speed cost
  • 15. vpn ā€¦ vpn 3 vpn 2 vpn 1 vpn 0 P1 Virtual pages Frame # Present bit ā€¦ ā€¦ Blk 1031 0 Blk 1030 0 Fr # 15 1 Blk 1030 ā€¦ Blk 1031 Fr #15 Fr #16 Fr # 16 1 ā€¦ PAGE TABLE
  • 16.