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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly