O'Reilly logo

Shared Memory Application Programming by Victor Alessandrini

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

Creating and Running Threads

Abstract

This chapter describes the basic programming interfaces for creating, running, and terminating threads in a process. The thread management programming interfaces proposed by the native libraries—Pthreads and Windows—as well as the C++11 thread library are first discussed, observing how the same universal concepts and features are implemented in somewhat similar ways. Next, a high-level, portable interface for simple thread management is introduced. This utility, included in the vath library, encapsulates the low-level interfaces previously described. Finally, a first look is given at the way threads are managed in OpenMP. All these issues are illustrated with several examples.

Keywords

Thread ...

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