Skip to Main Content
Multicore and GPU Programming
book

Multicore and GPU Programming

by Gerassimos Barlas
December 2014
Intermediate to advanced content levelIntermediate to advanced
698 pages
19h 8m
English
Morgan Kaufmann
Content preview from Multicore and GPU Programming
Chapter 3

Shared-memory programming

threads

Abstract

Threads are the basic vehicle for utilizing multicore platforms. In this chapter we explore in detail all the aspects of a thread’s lifetime, including creation, control, coordination and termination.

Thread-based development requires significant effort when compared to automated systems like OpenMP, but threads can make-up for this by affording a greater degree of control and potentially delivering more performance.

In this chapter we start from a brief, gentle introduction to concurrency using processes, before moving to threads. Modern threading libraries like Qt, provide advanced thread management facilities, that allow a programmer to utilize threads without the hassle of explicitly ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

The CUDA Handbook: A Comprehensive Guide to GPU Programming

The CUDA Handbook: A Comprehensive Guide to GPU Programming

Nicholas Wilt
PThreads Programming

PThreads Programming

Dick Buttlar, Jacqueline Farrell, Bradford Nichols

Publisher Resources

ISBN: 9780124171374