Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Overview
Multithreading Models
Threading Issues
Pthreads
Solaris 2 Threads
Windows 2000 Threads
Linux Threads
Java Threads
5.1
5.2
Benefits
Responsiveness
Resource Sharing
Economy
Utilization of MP Architectures
5.3
User Threads
- POSIX Pthreads
- Mach C-threads
- Solaris threads
5.4
Kernel Threads
- Windows 95/98/NT/2000
- Solaris
- Tru64 UNIX
- BeOS
- Linux
5.5
Multithreading Models
Many-to-One
One-to-One
Many-to-Many
5.6
Many-to-One
5.7
Many-to-One Model
5.8
One-to-One
- Windows 95/98/NT/2000
- OS/2
5.9
One-to-one Model
5.10
Many-to-Many Model
kernel threads.
Allows the operating system to create a sufficient number
of kernel threads.
Solaris 2
Windows NT/2000 with the ThreadFiber package
5.11
Many-to-Many Model
5.12
Threading Issues
5.13
Pthreads
and synchronization.
API specifies behavior of the thread library,
implementation is up to development of the library.
Common in UNIX operating systems.
5.14
Solaris 2 Threads
5.15
Solaris Process
5.16
- a thread id
- register set
- separate user and kernel stacks
- private data storage area
5.17
Linux Threads
5.18
Java Threads
5.19
5.20