CSC 338 Lecture 5 Threadsx - Lecture 5 Threads Operating System Concepts \u2013 9th Edition Silberschatz Galvin and Gagne \u00a92013 Thread Usage A word

CSC 338 Lecture 5 Threadsx - Lecture 5 Threads...

This preview shows page 1 - 8 out of 18 pages.

Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Lecture 5: Threads
4.2 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Thread Usage A word processor with three threads.
4.3 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Benefits Responsiveness – may allow continued execution if part of process is blocked, especially important for user interfaces Resource Sharing – threads share resources of process, easier than shared memory or message passing Economy – cheaper than process creation, thread switching lower overhead than context switching Scalability – process can take advantage of multiprocessor architectures
4.4 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Concurrency vs. Parallelism Concurrent execution on single-core system: Parallelism on a multi-core system:
4.5 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Single and Multithreaded Processes
4.6 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition The Classical Thread Model
4.7 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Pthreads May be provided either as user-level or kernel-level A POSIX standard (IEEE 1003.1c) API for thread creation and

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture