Computer Operating System - Lecture 5: Thread - Nguyen Thanh Son
Overview
Multithreading Models
Threading Issues
Pthreads
Solaris 2 Threads
Windows 2000 Threads
Linux Threads
Java Threads
Multithreading Models
Threading Issues
Pthreads
Solaris 2 Threads
Windows 2000 Threads
Linux Threads
Java Threads
Bạn đang xem tài liệu "Computer Operating System - Lecture 5: Thread - Nguyen Thanh Son", để tải tài liệu gốc về máy hãy click vào nút Download ở trên.
File đính kèm:
- computer_operating_system_lecture_05_thread_nguyen_thanh_son.pdf
Nội dung text: Computer Operating System - Lecture 5: Thread - Nguyen Thanh Son
- Chapter’s Content Overview Multithreading Models Threading Issues Pthreads Solaris 2 Threads Windows 2000 Threads Linux Threads Java Threads BK TP.HCM 01-Sep-16 Faculty of Computer Science & Engineering 2
- Benefits Responsiveness Resource Sharing Economy Utilization of MP Architectures BK TP.HCM 01-Sep-16 Faculty of Computer Science & Engineering 4
- Kernel Threads Supported by the Kernel Examples - Windows 95/98/NT/2000 - Solaris - Tru64 UNIX - BeOS - Linux BK TP.HCM 01-Sep-16 Faculty of Computer Science & Engineering 6
- Many-to-One Many user-level threads mapped to single kernel thread. Used on systems that do not support kernel threads. BK TP.HCM 01-Sep-16 Faculty of Computer Science & Engineering 8
- Many-to-Many Model Allows many user level threads to be mapped to many kernel threads. Allows the operating system to create a sufficient number of kernel threads. Solaris 2 Windows NT/2000 with the ThreadFiber package BK TP.HCM 01-Sep-16 Faculty of Computer Science & Engineering 10
- 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. BK TP.HCM 01-Sep-16 Faculty of Computer Science & Engineering 12
- Solaris Process BK TP.HCM 01-Sep-16 Faculty of Computer Science & Engineering 14
- Linux Threads Linux refers to them as tasks rather than threads. Thread creation is done through clone() system call. Clone() allows a child task to share the address space of the parent task (process) BK TP.HCM 01-Sep-16 Faculty of Computer Science & Engineering 16
- Java Thread States BK TP.HCM 01-Sep-16 Faculty of Computer Science & Engineering 18