O'Reilly logo

Multicore and GPU Programming by Gerassimos Barlas

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required