1 / 9

Q:what’s the Benefits of multithread?

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?.

Download Presentation

Q:what’s the Benefits of multithread?

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Q:(a)Describe the action for a kernel to context switching for threads (b)why it is faster than processes?

  2. Q:what’s the Benefits of multithread? • Responsiveness • Resource Sharing • Economy • Scalability

  3. 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

  4. Kernel Threads • Supported by the Kernel • Examples • Windows XP/2000 • Solaris • Linux • Tru64 UNIX • Mac OS X

  5. Q:How is the mapping between user thread and kernel thread? Advantage & disadvantage ? • Many-to-One • One-to-One • Many-to-Many

  6. Many-to-One Model

  7. One-to-one Model

  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 prior to version 9 • Windows NT/2000 with the ThreadFiber package

  9. Many-to-Many Model

More Related