TFCS 4
TFCS 4
Overview
Multithreading Models
Thread Libraries
Threading Issues
Operating System Examples
Windows XP Threads
Linux Threads
Responsiveness
Resource Sharing
Economy
Scalability
Many-to-One
One-to-One
Many-to-Many
Examples:
Solaris Green Threads
GNU Portable Threads
Examples
Windows NT/XP/2000
Linux
Solaris 9 and later
Examples
IRIX
HP-UX
Tru64 UNIX
Solaris 8 and earlier
Options:
Deliver the signal to the thread to which the signal applies
Deliver the signal to every thread in the process
Deliver the signal to certain threads in the process
Assign a specific thread to receive all signals for the
process
Nasratullah Walizada Balkh university 2023
30
Thread Pools
Create a number of threads in a pool
where they await work
Advantages:
Usually slightly faster to service a
request with an existing thread than
create a new thread
Allows the number of threads in the
application(s) to be bound to the
size of the pool