Threads
What is the most efficient way of using threads?
I have a few functions with while(true) loops in them. Currently, I use:
I have seen other ways of doing it, so I want to know the best method.
I have a few functions with while(true) loops in them. Currently, I use:
Code:
#include <thread>
...
Addition()
{
...
}
...
int main ()
{
thread ADD = thread(Addition);
ADD.join();
}

