90 likes | 105 Views
Learn about the action of a kernel for thread context switching and why it is faster than processes. Explore the benefits of multithreading: responsiveness, resource sharing, economy, and scalability. Discover the differences between User Threads and Kernel Threads, with examples from various operating systems. Understand the mapping between user threads and kernel threads, and the advantages and disadvantages of different models.
E N D
Q:(a)Describe the action for a kernel to context switching for threads (b)why it is faster than processes?
Q:what’s the Benefits of multithread? • Responsiveness • Resource Sharing • Economy • Scalability
Q:what’s the difference of User Threads & kernel thread? • Thread management done by user-level threads library • Three primary thread libraries: • POSIX Pthreads • Win32 threads • Java threads
Kernel Threads • Supported by the Kernel • Examples • Windows XP/2000 • Solaris • Linux • Tru64 UNIX • Mac OS X
Q:How is the mapping between user thread and kernel thread? Advantage & disadvantage ? • Many-to-One • One-to-One • Many-to-Many
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 prior to version 9 • Windows NT/2000 with the ThreadFiber package