Changes

Jump to: navigation, search

GPU621/CamelCaseTeam

481 bytes added, 03:03, 22 July 2021
C++ Threading - explanation of C++ thread library
== C++ Threading ==
C++ threading consists of the creation of a thread that works on a function. By having multiple threads, multiple functions are able to be performed at the same time which enables parallel processing. <blockquote><p>template<class Function, class... args></p> <p>explicit thread( Function&& f, Args&&... args);</p></blockquote> As seen above, a single thread takes a function through overloading and performs the task by passing the arguments to the function parameter which would execute separate to other threads. Once these threads are finishedperforming their function, the child thread must be joined using the .join() function in the thread library to the parent thread.
== OpenMP Threading ==
16
edits

Navigation menu