Threads: Multithreading Models Threading Issues Pthreads Windows XP Threads Linux Threads Java Threads
Threads: Multithreading Models Threading Issues Pthreads Windows XP Threads Linux Threads Java Threads
Threads: Multithreading Models Threading Issues Pthreads Windows XP Threads Linux Threads Java Threads
2:14 PM
• Overview
• Multithreading Models
• Threading Issues
• Pthreads
• Windows XP Threads
• Linux Threads
• Java Threads
Benefits
• Responsiveness
• Resource Sharing
User Threads
Kernel Threads
Multithreading Models
• Many-to-One
• One-to-One
• Many-to-Many
Many-to-One
Many-to-Many Model
Two-level Model
• Similar to M:M, except that it allows a user thread to be bound to kernel thread
• Examples
• IRIX
• HP-UX
• Tru64 UNIX
• Solaris 8 and earlier
Pthreads
• A POSIX standard (IEEE 1003.1c) API for thread creation and synchronization
• API specifies behavior of the thread library, implementation is up to development of the
library
• Common in UNIX operating systems (Solaris, Linux, Mac OS X)
Windows XP Threads
Java Threads