thread
is used in C++, to use the built in multi-threads.
A thread is created by creating a thread class object. A thread is useless until it is initialized. No information is passed initially to a default thread created. There are two ways to initialize a thread.
functor
".
Functor is a class object which is obtained by overloading operator(). Thread initialization is done by passing the class object to the thread constructor.