Yield method
Appearance
![]() | This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these messages)
|
The Yield method is used in various object oriented languages which handle multi-threading (such as Java, C#) to force the processor to relinquish control of the current running thread and send it to end of the running queue of the same priority.[1]
Similar functions
Other languages provide similar functionality outside of an OOP framework:-
- yield function in the multi paradigm C++ programming language
- pthread_yield in the C programming language, a lower level implementation
References
- ^ "Thread.yield". Javamex. Retrieved 24 June 2011.