SlideShare a Scribd company logo
1 of 36
Chapter 4:  Threads
Chapter 4: Threads ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Objectives ,[object Object],[object Object],[object Object]
Single and Multithreaded Processes
Benefits ,[object Object],[object Object],[object Object],[object Object]
Multicore Programming ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Multithreaded Server Architecture
Concurrent Execution on a  Single-core System
Parallel Execution on a  Multicore System
User Threads ,[object Object],[object Object],[object Object],[object Object],[object Object]
Kernel Threads ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Multithreading Models ,[object Object],[object Object],[object Object]
Many-to-One ,[object Object],[object Object],[object Object],[object Object]
Many-to-One Model
One-to-One ,[object Object],[object Object],[object Object],[object Object],[object Object]
One-to-one Model
Many-to-Many Model ,[object Object],[object Object],[object Object],[object Object]
Many-to-Many Model
Two-level Model ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Two-level Model
Thread Libraries ,[object Object],[object Object],[object Object],[object Object]
Pthreads ,[object Object],[object Object],[object Object],[object Object]
Java Threads ,[object Object],[object Object],[object Object],[object Object],[object Object]
Threading Issues ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Semantics of fork() and exec() ,[object Object]
Thread Cancellation ,[object Object],[object Object],[object Object],[object Object]
Signal Handling ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Thread Pools ,[object Object],[object Object],[object Object],[object Object]
Thread Specific Data ,[object Object],[object Object]
Scheduler Activations ,[object Object],[object Object],[object Object]
Operating System Examples ,[object Object],[object Object]
Windows XP Threads
Linux Threads
Windows XP Threads ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Linux Threads ,[object Object],[object Object],[object Object]
End of Chapter 4

More Related Content

What's hot

Operating system concepts (notes)
Operating system concepts (notes)Operating system concepts (notes)
Operating system concepts (notes)
Sohaib Danish
 
Inter process communication
Inter process communicationInter process communication
Inter process communication
Mohd Tousif
 
Chapter 2 Operating System Structures.ppt
Chapter 2 Operating System Structures.pptChapter 2 Operating System Structures.ppt
Chapter 2 Operating System Structures.ppt
ErenJeager20
 
distributed shared memory
 distributed shared memory distributed shared memory
distributed shared memory
Ashish Kumar
 
Chapter 4 a interprocess communication
Chapter 4 a interprocess communicationChapter 4 a interprocess communication
Chapter 4 a interprocess communication
AbDul ThaYyal
 

What's hot (20)

Chapter 14 - Protection
Chapter 14 - ProtectionChapter 14 - Protection
Chapter 14 - Protection
 
Distributed Shared Memory
Distributed Shared MemoryDistributed Shared Memory
Distributed Shared Memory
 
Operating System Lecture Notes
Operating System Lecture NotesOperating System Lecture Notes
Operating System Lecture Notes
 
Remote Procedure Call in Distributed System
Remote Procedure Call in Distributed SystemRemote Procedure Call in Distributed System
Remote Procedure Call in Distributed System
 
Ch1-Operating System Concept
Ch1-Operating System ConceptCh1-Operating System Concept
Ch1-Operating System Concept
 
Operating system concepts (notes)
Operating system concepts (notes)Operating system concepts (notes)
Operating system concepts (notes)
 
Unit 1 ppt
Unit 1 pptUnit 1 ppt
Unit 1 ppt
 
Message passing ( in computer science)
Message   passing  ( in   computer  science)Message   passing  ( in   computer  science)
Message passing ( in computer science)
 
Lecture 1 introduction to parallel and distributed computing
Lecture 1   introduction to parallel and distributed computingLecture 1   introduction to parallel and distributed computing
Lecture 1 introduction to parallel and distributed computing
 
Inter process communication
Inter process communicationInter process communication
Inter process communication
 
GOOGLE FILE SYSTEM
GOOGLE FILE SYSTEMGOOGLE FILE SYSTEM
GOOGLE FILE SYSTEM
 
distributed Computing system model
distributed Computing system modeldistributed Computing system model
distributed Computing system model
 
Chapter 2 Operating System Structures.ppt
Chapter 2 Operating System Structures.pptChapter 2 Operating System Structures.ppt
Chapter 2 Operating System Structures.ppt
 
Windows process-scheduling
Windows process-schedulingWindows process-scheduling
Windows process-scheduling
 
Case study windows
Case study windowsCase study windows
Case study windows
 
WT(WEB TECHNOLOGY) previous year question papers
WT(WEB TECHNOLOGY) previous year question papersWT(WEB TECHNOLOGY) previous year question papers
WT(WEB TECHNOLOGY) previous year question papers
 
distributed shared memory
 distributed shared memory distributed shared memory
distributed shared memory
 
Chapter 4 a interprocess communication
Chapter 4 a interprocess communicationChapter 4 a interprocess communication
Chapter 4 a interprocess communication
 
Distributed file system
Distributed file systemDistributed file system
Distributed file system
 
03 Introduction to Physical layer
03  Introduction to Physical layer03  Introduction to Physical layer
03 Introduction to Physical layer
 

Viewers also liked

Chapter 6 - Process Synchronization
Chapter 6 - Process SynchronizationChapter 6 - Process Synchronization
Chapter 6 - Process Synchronization
Wayne Jones Jnr
 
Galvin-operating System(Ch5)
Galvin-operating System(Ch5)Galvin-operating System(Ch5)
Galvin-operating System(Ch5)
dsuyal1
 
Lec11 semaphores
Lec11 semaphoresLec11 semaphores
Lec11 semaphores
anandammca
 

Viewers also liked (20)

Chapter 4 - Threads
Chapter 4 - ThreadsChapter 4 - Threads
Chapter 4 - Threads
 
Unit II - 2 - Operating System - Threads
Unit II - 2 - Operating System - ThreadsUnit II - 2 - Operating System - Threads
Unit II - 2 - Operating System - Threads
 
Chapter 2: Operating System Structures
Chapter 2: Operating System StructuresChapter 2: Operating System Structures
Chapter 2: Operating System Structures
 
Threads
ThreadsThreads
Threads
 
Threads (operating System)
Threads (operating System)Threads (operating System)
Threads (operating System)
 
Chapter 3: Processes
Chapter 3: ProcessesChapter 3: Processes
Chapter 3: Processes
 
Chapter 6 - Process Synchronization
Chapter 6 - Process SynchronizationChapter 6 - Process Synchronization
Chapter 6 - Process Synchronization
 
OS Process and Thread Concepts
OS Process and Thread ConceptsOS Process and Thread Concepts
OS Process and Thread Concepts
 
Android线程简介
Android线程简介Android线程简介
Android线程简介
 
OSCh5
OSCh5OSCh5
OSCh5
 
Pthreads linux
Pthreads linuxPthreads linux
Pthreads linux
 
Illumos — LOPSA SD
Illumos — LOPSA SDIllumos — LOPSA SD
Illumos — LOPSA SD
 
Galvin-operating System(Ch5)
Galvin-operating System(Ch5)Galvin-operating System(Ch5)
Galvin-operating System(Ch5)
 
4.Threads
4.Threads4.Threads
4.Threads
 
Ch05
Ch05Ch05
Ch05
 
Open Solaris 2008.05
Open Solaris 2008.05Open Solaris 2008.05
Open Solaris 2008.05
 
Thread
ThreadThread
Thread
 
Differnce of two processors
Differnce of two processorsDiffernce of two processors
Differnce of two processors
 
data structure
data structuredata structure
data structure
 
Lec11 semaphores
Lec11 semaphoresLec11 semaphores
Lec11 semaphores
 

Similar to Ch4 Threads (20)

Section04 threads
Section04 threadsSection04 threads
Section04 threads
 
Ch5 OS
Ch5 OSCh5 OS
Ch5 OS
 
CH04.pdf
CH04.pdfCH04.pdf
CH04.pdf
 
OS_Ch5
OS_Ch5OS_Ch5
OS_Ch5
 
Os
OsOs
Os
 
Operating System 4 1193308760782240 2
Operating System 4 1193308760782240 2Operating System 4 1193308760782240 2
Operating System 4 1193308760782240 2
 
Operating System 4
Operating System 4Operating System 4
Operating System 4
 
multi-threading
multi-threadingmulti-threading
multi-threading
 
Ch04 threads
Ch04 threadsCh04 threads
Ch04 threads
 
Treads
TreadsTreads
Treads
 
4 threads
4 threads4 threads
4 threads
 
Sucet os module_2_notes
Sucet os module_2_notesSucet os module_2_notes
Sucet os module_2_notes
 
OS Module-2.pptx
OS Module-2.pptxOS Module-2.pptx
OS Module-2.pptx
 
Chapter 6 os
Chapter 6 osChapter 6 os
Chapter 6 os
 
Studies
StudiesStudies
Studies
 
Lecture 9 -_pthreads-linux_threads
Lecture 9 -_pthreads-linux_threadsLecture 9 -_pthreads-linux_threads
Lecture 9 -_pthreads-linux_threads
 
Chapter04 new
Chapter04 newChapter04 new
Chapter04 new
 
Mca ii os u-5 unix linux file system
Mca  ii  os u-5 unix linux file systemMca  ii  os u-5 unix linux file system
Mca ii os u-5 unix linux file system
 
Operating System Chapter 4 Multithreaded programming
Operating System Chapter 4 Multithreaded programmingOperating System Chapter 4 Multithreaded programming
Operating System Chapter 4 Multithreaded programming
 
Visual comparison of Unix-like systems & Virtualisation
Visual comparison of Unix-like systems & VirtualisationVisual comparison of Unix-like systems & Virtualisation
Visual comparison of Unix-like systems & Virtualisation
 

Ch4 Threads