Modified ch4.ppt - Chapter 4 Threads Operating System Concepts – 9th Edition Silberschatz Galvin and Gagne ©2013 Chapter 4 Threads Overview Multicore

Modified ch4.ppt - Chapter 4 Threads Operating System...

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

Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Chapter 4: Threads
Image of page 1

Subscribe to view the full document.

4.2 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Chapter 4: Threads Overview Multicore Programming Multithreading Models Thread Libraries Implicit Threading Threading Issues Operating System Examples
Image of page 2
4.3 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Objectives To introduce the notion of a thread—a fundamental unit of CPU utilization that forms the basis of multithreaded computer systems To discuss the APIs for the Pthreads, Windows, and Java thread libraries To explore several strategies that provide implicit threading To examine issues related to multithreaded programming To cover operating system support for threads in Windows and Linux
Image of page 3

Subscribe to view the full document.

4.4 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Motivation Most modern applications are multithreaded Threads run within application Multiple tasks with the application can be implemented by separate threads Update display Fetch data Spell checking Answer a network request Process creation is heavy-weight while thread creation is light- weight Can simplify code, increase efficiency Kernels are generally multithreaded
Image of page 4
4.5 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Multithreaded Server Architecture
Image of page 5

Subscribe to view the full document.

4.6 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
Image of page 6
4.7 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Multicore Programming Multicore or multiprocessor systems putting pressure on programmers, challenges include: Dividing activities: This involves examining applications to find areas that can be divided into separate, concurrent tasks. Balance: programmers must also ensure that the tasks perform equal work of equal value Data splitting: the data accessed and manipulated by the tasks must be divided to run on separate cores. Data dependency: The data accessed by the tasks must be examined for dependencies between two or more tasks. Testing and debugging: When a program is running in parallel on multiple cores, many different execution paths are possible.
Image of page 7

Subscribe to view the full document.

Image of page 8
  • Spring '13
  • JAY HEIZER | BARRY RENDER | CHUCK MUNSON

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Ask Expert Tutors You can ask 0 bonus questions You can ask 0 questions (0 expire soon) You can ask 0 questions (will expire )
Answers in as fast as 15 minutes