Threads Flashcards
1
Q
What does yield
method work? and how do you have to invoke it?
A
std::this_thread::yield()
It allows to other threads to push for their execution without bloking the current thread from where the method yield
has been invoked.
VB6 has the method DoEvents()
which is the equivalent but allow other events to execute.