Is the thread in C++ a time slice or the execution of a function? : Is the thread in C++ a time slice or the execution of a function or both?

A thread is executing a function which is a block of code inside an outer loop. If you send a signal (via a global variable) to break from the outer loop. The function returns, but what happens to the running thread assuming it is a time slice of execution?