One of the biggest challenges of thread-management begins when the threads share non-const data
A thread gets its data by copy or by reference. By default, you should use by copy. Why? In case your thread gets its data by reference, you have to be extremely careful about the lifetime of the arguments.
The parent has to take care of their child. This simple idea has big consequences for a thread lifetime. The following program starts a thread, that displays its ID.
Currently are 156 guests and no members online
Kubik-Rubik Joomla! Extensions