Skip to content

Glossary: C++ Beyond the Basics

std::thread

Also written: join, hardware_concurrency

Starts a thread running a function, usually a lambda. `.join()` waits for it, and destroying an unjoined `std::thread` stops the program.

Where the book teaches it

Related terms

Threadjthread