Open main menu

CDOT Wiki β

Changes

GPU621/NoName

1 byte added, 00:51, 3 December 2016
Creating and executing Threads
* std::thread::join - allows the thread to execute in the background independently from the main thread. The thread will continue execution without blocking nor synchronizing in any way and terminate without relying on the main thread.
* std::thread::detach - waits for the thread to finish execution. Once a thread is created another thread can wait for the thread to finish.
 
Example of native thread creating and synchronization using C++ 11