SlideServe
Menu
Préférences
© SlideServe · v2026

Thread Context Switching: Efficiency and Benefits

anthonyvharris avatar
9 diapositives · 115 Views · Jan 04, 2020

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.

Thread Context Switching: Efficiency and Benefits - slide 1
01 / 9Thread Context Switching: Efficiency and Benefits
1 / 17

Télécharger la présentation

Thread Context Switching: Efficiency and Benefits
Une image / un lien ci-dessous est fourni (tel quel) pour télécharger la présentation

Politique de téléchargement : le contenu du site vous est fourni TEL QUEL pour votre information et votre usage personnel ; il ne peut être vendu, concédé sous licence ni partagé sur d’autres sites sans l’accord de son auteur.Le contenu vous est fourni TEL QUEL, pour votre information et votre usage personnel uniquement. Téléchargez la présentation en cliquant sur ce lien. Lors du téléchargement, si vous ne parvenez pas à télécharger une présentation, l’éditeur a peut-être supprimé le fichier de son serveur.Pendant le téléchargement, si vous ne parvenez pas à obtenir une présentation, le fichier a peut-être été supprimé par l’éditeur.

F I N

Plus de contenu associé

Transcription de la présentation
  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