SlideShare ist ein Scribd-Unternehmen logo
1 von 53
SCHEDULER ACTIVATIONS Effective Kernel Support for the User-Level Management of Parallelism Kasun Gajasinghe Nisansa de Silva University of Moratuwa Based on the paper “Scheduler Activations -  Effective Kernel Support for the User-Level Management of Parallelism” by Thomas E. Anderson et.al.
Scheduler Activations ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
What is a Thread? ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Why Threads? ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Implementing Threads ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
  ,[object Object],   User Thread      Kernel Thread
Thread System - User Level ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Thread System - System Level ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
  ,[object Object],[object Object],[object Object],[object Object]
SCHEDULER ACTIVATIONS  
Scheduler Activations ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Scheduler Activations ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Scheduler Activations ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Scheduler Activations ,[object Object]
Scheduler Activations ,[object Object],[object Object],[object Object]
Scheduler Activations ,[object Object],[object Object],[object Object],Kernel Application Address space
Scheduler Activations ,[object Object],[object Object],Kernel Application Address space
Scheduler Activations ,[object Object],[object Object],Kernel Application Address space
Scheduler Activations - Programs  Kernel Application 1 Address space
Scheduler Activations - Programs  Kernel Application 1 Address space
Scheduler Activations - Upcalls  Kernel Application 1 Address space
Scheduler Activations – thread stopping  ,[object Object]
Scheduler Activations – thread stopping  ,[object Object],[object Object],[object Object],[object Object]
Scheduler Activations – thread stopping  ,[object Object]
Scheduler Activations -Blocking Kernel Application 1 Address space
Scheduler Activations -Blocking Kernel Application 1 Address space
Scheduler Activations -Blocking Kernel Application 1 Address space 
Scheduler Activations -Blocking Kernel Application 1 Address space
Scheduler Activations -Blocking Kernel Application 1 Address space 
Scheduler Activations -Blocking Kernel Application 1 Address space  P
Scheduler Activations -Multiprogramming Application 2 Address space Kernel Application 1 Address space
Scheduler Activations -Multiprogramming Application 2 Address space Kernel Application 1 Address space P
Scheduler Activations - Additional ,[object Object],[object Object]
Scheduler Activations – Upcall Points
Scheduler Activations – Address space to Kernel
Scheduler Activations - Enhancements ,[object Object],[object Object]
Scheduler Activations – Critical sections ,[object Object],[object Object],[object Object],[object Object]
Scheduler Activations –Critical section Kernel Application 1 Address space P User level context switch!
Implementation ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Implementation ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Implementation– Processor Allocation Policy ,[object Object],[object Object],[object Object],[object Object]
Implementation– Thread Scheduling Policy ,[object Object],[object Object]
Performance Enhancements– Critical sections ,[object Object],[object Object]
Performance Enhancements– Critical sections ,[object Object],[object Object],[object Object],[object Object]
Performance Enhancements– UPCalls ,[object Object],[object Object],[object Object]
Performance Enhancements– Debugging ,[object Object],[object Object]
Performance ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Performance ,[object Object]
Performance ,[object Object]
Performance ,[object Object]
Summary ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
THANK YOU!  

Weitere ähnliche Inhalte

Was ist angesagt?

Distributed Server
Distributed ServerDistributed Server
Distributed Server
Rajan Kumar
 

Was ist angesagt? (20)

What is a Kernel? : Introduction And Architecture
What is a Kernel? : Introduction And ArchitectureWhat is a Kernel? : Introduction And Architecture
What is a Kernel? : Introduction And Architecture
 
runC – Open Container Initiative
runC – Open Container InitiativerunC – Open Container Initiative
runC – Open Container Initiative
 
what is LINUX ? presentation.
what is LINUX ? presentation.what is LINUX ? presentation.
what is LINUX ? presentation.
 
Unit II - 2 - Operating System - Threads
Unit II - 2 - Operating System - ThreadsUnit II - 2 - Operating System - Threads
Unit II - 2 - Operating System - Threads
 
CS9222 ADVANCED OPERATING SYSTEMS
CS9222 ADVANCED OPERATING SYSTEMSCS9222 ADVANCED OPERATING SYSTEMS
CS9222 ADVANCED OPERATING SYSTEMS
 
Operating system 24 mutex locks and semaphores
Operating system 24 mutex locks and semaphoresOperating system 24 mutex locks and semaphores
Operating system 24 mutex locks and semaphores
 
Linux
LinuxLinux
Linux
 
Operating Systems
Operating SystemsOperating Systems
Operating Systems
 
Google file system GFS
Google file system GFSGoogle file system GFS
Google file system GFS
 
Distributed computing ).ppt him
Distributed computing ).ppt himDistributed computing ).ppt him
Distributed computing ).ppt him
 
Large Scale Deep Learning with TensorFlow
Large Scale Deep Learning with TensorFlow Large Scale Deep Learning with TensorFlow
Large Scale Deep Learning with TensorFlow
 
Sentry - An Introduction
Sentry - An Introduction Sentry - An Introduction
Sentry - An Introduction
 
Seamless scaling of Kubernetes nodes
Seamless scaling of Kubernetes nodesSeamless scaling of Kubernetes nodes
Seamless scaling of Kubernetes nodes
 
Distributed Server
Distributed ServerDistributed Server
Distributed Server
 
Operating system architecture
Operating system architectureOperating system architecture
Operating system architecture
 
Galera Cluster Best Practices for DBA's and DevOps Part 1
Galera Cluster Best Practices for DBA's and DevOps Part 1Galera Cluster Best Practices for DBA's and DevOps Part 1
Galera Cluster Best Practices for DBA's and DevOps Part 1
 
Multicore processor by Ankit Raj and Akash Prajapati
Multicore processor by Ankit Raj and Akash PrajapatiMulticore processor by Ankit Raj and Akash Prajapati
Multicore processor by Ankit Raj and Akash Prajapati
 
Deadlock in Operating System
Deadlock in Operating SystemDeadlock in Operating System
Deadlock in Operating System
 
Operations on Processes
Operations on ProcessesOperations on Processes
Operations on Processes
 
Off Campus Resume
Off Campus ResumeOff Campus Resume
Off Campus Resume
 

Andere mochten auch

How_to_do_RAW_activity_supported_with_road_show
How_to_do_RAW_activity_supported_with_road_showHow_to_do_RAW_activity_supported_with_road_show
How_to_do_RAW_activity_supported_with_road_show
miracleventz20
 
Operating System-Threads-Galvin
Operating System-Threads-GalvinOperating System-Threads-Galvin
Operating System-Threads-Galvin
Sonali Chauhan
 
WINGS BRAND ACTIVATIONS (P) LTD
WINGS BRAND ACTIVATIONS (P) LTDWINGS BRAND ACTIVATIONS (P) LTD
WINGS BRAND ACTIVATIONS (P) LTD
M Power Group
 
Scheduler activations
Scheduler activationsScheduler activations
Scheduler activations
Vin Voro
 
BTL,Onground activation, Offline advertising, Promotion, On ground promotions...
BTL,Onground activation, Offline advertising, Promotion, On ground promotions...BTL,Onground activation, Offline advertising, Promotion, On ground promotions...
BTL,Onground activation, Offline advertising, Promotion, On ground promotions...
Synergy Integrated MarCom India Pvt. Ltd.
 
Brand activation
Brand activationBrand activation
Brand activation
Ali Hadi
 

Andere mochten auch (14)

Ideas @ work from the Social Biz Roadshow
Ideas @ work from the Social Biz RoadshowIdeas @ work from the Social Biz Roadshow
Ideas @ work from the Social Biz Roadshow
 
BL Labs Roadshow 2016 - Digital Research Team
BL Labs Roadshow 2016 - Digital Research TeamBL Labs Roadshow 2016 - Digital Research Team
BL Labs Roadshow 2016 - Digital Research Team
 
creative roadshow for BMW
creative roadshow for BMWcreative roadshow for BMW
creative roadshow for BMW
 
The Brand Activations - Agency Profile and Portfolio
The Brand Activations - Agency Profile and PortfolioThe Brand Activations - Agency Profile and Portfolio
The Brand Activations - Agency Profile and Portfolio
 
How_to_do_RAW_activity_supported_with_road_show
How_to_do_RAW_activity_supported_with_road_showHow_to_do_RAW_activity_supported_with_road_show
How_to_do_RAW_activity_supported_with_road_show
 
Innovative Marketing Ideas to augment & boost sales
Innovative Marketing Ideas to augment & boost sales Innovative Marketing Ideas to augment & boost sales
Innovative Marketing Ideas to augment & boost sales
 
Ideabox Profile_V1
Ideabox Profile_V1Ideabox Profile_V1
Ideabox Profile_V1
 
Kernel (computing)
Kernel (computing)Kernel (computing)
Kernel (computing)
 
RAW Activation 2011
RAW  Activation 2011RAW  Activation 2011
RAW Activation 2011
 
Operating System-Threads-Galvin
Operating System-Threads-GalvinOperating System-Threads-Galvin
Operating System-Threads-Galvin
 
WINGS BRAND ACTIVATIONS (P) LTD
WINGS BRAND ACTIVATIONS (P) LTDWINGS BRAND ACTIVATIONS (P) LTD
WINGS BRAND ACTIVATIONS (P) LTD
 
Scheduler activations
Scheduler activationsScheduler activations
Scheduler activations
 
BTL,Onground activation, Offline advertising, Promotion, On ground promotions...
BTL,Onground activation, Offline advertising, Promotion, On ground promotions...BTL,Onground activation, Offline advertising, Promotion, On ground promotions...
BTL,Onground activation, Offline advertising, Promotion, On ground promotions...
 
Brand activation
Brand activationBrand activation
Brand activation
 

Ähnlich wie Scheduler Activations - Effective Kernel Support for the User-Level Management of Parallelism

Module2 MultiThreads.ppt
Module2 MultiThreads.pptModule2 MultiThreads.ppt
Module2 MultiThreads.ppt
shreesha16
 
OS Module-2.pptx
OS Module-2.pptxOS Module-2.pptx
OS Module-2.pptx
bleh23
 
Operating system (OS) itself is a process, what approaches are there.pdf
Operating system (OS) itself is a process, what approaches are there.pdfOperating system (OS) itself is a process, what approaches are there.pdf
Operating system (OS) itself is a process, what approaches are there.pdf
JUSTSTYLISH3B2MOHALI
 

Ähnlich wie Scheduler Activations - Effective Kernel Support for the User-Level Management of Parallelism (20)

4.Process.ppt
4.Process.ppt4.Process.ppt
4.Process.ppt
 
OS Thr schd.ppt
OS Thr schd.pptOS Thr schd.ppt
OS Thr schd.ppt
 
Multi threaded programming
Multi threaded programmingMulti threaded programming
Multi threaded programming
 
Thread
ThreadThread
Thread
 
CS9222 ADVANCED OPERATING SYSTEMS
CS9222 ADVANCED OPERATING SYSTEMSCS9222 ADVANCED OPERATING SYSTEMS
CS9222 ADVANCED OPERATING SYSTEMS
 
Multiprocessor Scheduling
Multiprocessor SchedulingMultiprocessor Scheduling
Multiprocessor Scheduling
 
Threads
ThreadsThreads
Threads
 
Module2 MultiThreads.ppt
Module2 MultiThreads.pptModule2 MultiThreads.ppt
Module2 MultiThreads.ppt
 
Wiki 2
Wiki 2Wiki 2
Wiki 2
 
Concept of thread, multi thread, tcb
Concept of thread, multi thread, tcbConcept of thread, multi thread, tcb
Concept of thread, multi thread, tcb
 
Threading.pptx
Threading.pptxThreading.pptx
Threading.pptx
 
Parallel Processing (Part 2)
Parallel Processing (Part 2)Parallel Processing (Part 2)
Parallel Processing (Part 2)
 
OS Module-2.pptx
OS Module-2.pptxOS Module-2.pptx
OS Module-2.pptx
 
Operating system (OS) itself is a process, what approaches are there.pdf
Operating system (OS) itself is a process, what approaches are there.pdfOperating system (OS) itself is a process, what approaches are there.pdf
Operating system (OS) itself is a process, what approaches are there.pdf
 
Threads (operating System)
Threads (operating System)Threads (operating System)
Threads (operating System)
 
Thread scheduling...................pptx
Thread scheduling...................pptxThread scheduling...................pptx
Thread scheduling...................pptx
 
Sucet os module_2_notes
Sucet os module_2_notesSucet os module_2_notes
Sucet os module_2_notes
 
thread os.pptx
thread os.pptxthread os.pptx
thread os.pptx
 
Networking threads
Networking threadsNetworking threads
Networking threads
 
RPC communication,thread and processes
RPC communication,thread and processesRPC communication,thread and processes
RPC communication,thread and processes
 

Mehr von Kasun Gajasinghe

[WSO2] Deployment Synchronizer for Deployment Artifact Synchronization Betwee...
[WSO2] Deployment Synchronizer for Deployment Artifact Synchronization Betwee...[WSO2] Deployment Synchronizer for Deployment Artifact Synchronization Betwee...
[WSO2] Deployment Synchronizer for Deployment Artifact Synchronization Betwee...
Kasun Gajasinghe
 
Survey on Frequent Pattern Mining on Graph Data - Slides
Survey on Frequent Pattern Mining on Graph Data - SlidesSurvey on Frequent Pattern Mining on Graph Data - Slides
Survey on Frequent Pattern Mining on Graph Data - Slides
Kasun Gajasinghe
 
Google Summer of Code 2011 Sinhalese flyer
Google Summer of Code  2011 Sinhalese flyer Google Summer of Code  2011 Sinhalese flyer
Google Summer of Code 2011 Sinhalese flyer
Kasun Gajasinghe
 

Mehr von Kasun Gajasinghe (7)

Building Services with WSO2 Microservices framework for Java and WSO2 AS
Building Services with WSO2 Microservices framework for Java and WSO2 ASBuilding Services with WSO2 Microservices framework for Java and WSO2 AS
Building Services with WSO2 Microservices framework for Java and WSO2 AS
 
Building Services with WSO2 Microservices framework for Java and WSO2 AS
Building Services with WSO2 Microservices framework for Java and WSO2 ASBuilding Services with WSO2 Microservices framework for Java and WSO2 AS
Building Services with WSO2 Microservices framework for Java and WSO2 AS
 
Distributed caching with java JCache
Distributed caching with java JCacheDistributed caching with java JCache
Distributed caching with java JCache
 
[WSO2] Deployment Synchronizer for Deployment Artifact Synchronization Betwee...
[WSO2] Deployment Synchronizer for Deployment Artifact Synchronization Betwee...[WSO2] Deployment Synchronizer for Deployment Artifact Synchronization Betwee...
[WSO2] Deployment Synchronizer for Deployment Artifact Synchronization Betwee...
 
Siddhi CEP Engine
Siddhi CEP EngineSiddhi CEP Engine
Siddhi CEP Engine
 
Survey on Frequent Pattern Mining on Graph Data - Slides
Survey on Frequent Pattern Mining on Graph Data - SlidesSurvey on Frequent Pattern Mining on Graph Data - Slides
Survey on Frequent Pattern Mining on Graph Data - Slides
 
Google Summer of Code 2011 Sinhalese flyer
Google Summer of Code  2011 Sinhalese flyer Google Summer of Code  2011 Sinhalese flyer
Google Summer of Code 2011 Sinhalese flyer
 

Kürzlich hochgeladen

Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Kürzlich hochgeladen (20)

Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
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
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 

Scheduler Activations - Effective Kernel Support for the User-Level Management of Parallelism

Hinweis der Redaktion

  1. This way, when a thread blocks on a user-level lock or condition variable, the thread scheduler can resume running without kernel intervention.
  2. Inform that 2 threads have stopped!
  3. an additional preemption may have to take place beyond the ones described above. For inst ante, on an I/0 completion, some processor could be running a thread with a lower priority than both the unblocked and the preempted thread. In that case, the user-level thread system can ask the kernel to interrupt the thread running on that processor and start a scheduler activation once the thread has been stopped. The user level can know to do this because it knows exactly which thread is running on each of its processors. the kernel’s interaction with the application is entirely in terms of scheduler activations. The application is free to build any other concurrency model on top of scheduler activations; the kernel’s behavior is exactly the same in every case. In particular, the kernel needs no knowledge of the data structures used to represent parallelism at the user level.
  4. More runnable threads than processors More processors than runnable threads If an applicatlon has notified the kernel that it has idle processors, and the kernel has not taken them away, then there must be no other work in the system, and the kernel need not be notified of changes in parallelism, up to the point where the application has more work than processors. These notifications are only hints: if the kernel gives an address space a processor that is no longer needed by the time it gets there, the address space simply returns the processor to the kernel with the updated information. Of course, the user-level thread system must serialize its notifications to the kernel, since ordering matters.
  5. This encourages address spaces to give up processors when they are needed elsewhere, since the priorities imply that it is likely that the processors will be returned when they are needed. This avoids the overhead of processor re-allocation when the work is created.
  6. because other threads continue to test an application-level spin-lock held by the preempted thread the preempted thread could be holding a lock on the user-level thread ready list; if so, deadlock would occur if the upcall attempted to place the preempted thread onto the ready list