ThreadModelJan25

ThreadModelJan25 - Realizing Concurrency using the thread...

Info iconThis preview shows pages 1–10. Sign up to view the full content.

View Full Document Right Arrow Icon
10/16/10 1 Realizing Concurrency using the thread model B. Ramamurthy
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
10/16/10 2 Introduction A thread refers to a thread of control flow: an independent sequence of execution of program code. Threads are powerful. As with most powerful tools, if they are not used appropriately thread programming may be inefficient. Thread programming has become viable solution for many problems with the advent of multiprocessors and client-server model of computing. Typically these problems are expected to handle many requests simultaneously. Example: multi- media, database applications, web applications.
Background image of page 2
10/16/10 3 Topics to be Covered Objectives What are Threads? Thread implementation models POSIX threads Creating threads Using threads Summary
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
10/16/10 4 Objectives To understand the thread model for realizing concurrency To study POSIX standard for threads called Pthreads. To study thread control primitives for creation, termination, join, synchronization, concurrency, and scheduling. To learn to design multi-threaded applications.
Background image of page 4
10/16/10 5 The Thread Model (a) Three processes each with one thread (b) One process with three threads
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
10/16/10 6 Per process vs per thread items Items shared by all threads in a process Items private to each thread
Background image of page 6
10/16/10 7 Implementing Threads in User Space A user-level threads package
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
10/16/10 8 Implementing Threads in the Kernel A threads package managed by the kernel
Background image of page 8
10/16/10 9 Hybrid Implementations Multiplexing user-level threads onto kernel- level threads
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 10
This is the end of the preview. Sign up to access the rest of the document.

This document was uploaded on 10/15/2010.

Page1 / 22

ThreadModelJan25 - Realizing Concurrency using the thread...

This preview shows document pages 1 - 10. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online