fbpx
Wikipedia

Yield (multithreading)

In computer science, yield is an action that occurs in a computer program during multithreading, of forcing a processor to relinquish control of the current running thread, and sending it to the end of the running queue, of the same scheduling priority.

Examples edit

Different programming languages implement yielding in various ways.

In coroutines edit

Coroutines are a fine-grained concurrency primitive, which may be required to yield explicitly. They may enable specifying another function to take control. Coroutines that explicitly yield allow cooperative multitasking.

See also edit

References edit

  1. ^ "pthread_yield". IBM.
  2. ^ "Thread.yield". Javamex. Retrieved 24 June 2011.

yield, multithreading, computer, science, yield, action, that, occurs, computer, program, during, multithreading, forcing, processor, relinquish, control, current, running, thread, sending, running, queue, same, scheduling, priority, contents, examples, corout. In computer science yield is an action that occurs in a computer program during multithreading of forcing a processor to relinquish control of the current running thread and sending it to the end of the running queue of the same scheduling priority Contents 1 Examples 2 In coroutines 3 See also 4 ReferencesExamples editDifferent programming languages implement yielding in various ways pthread yield in the language C a low level implementation provided by POSIX Threads 1 std this thread yield in the language C introduced in C 11 The Yield method is provided in various object oriented programming languages with multithreading support such as C and Java 2 OOP languages generally provide class abstractions for thread objects yield in KotlinIn coroutines editCoroutines are a fine grained concurrency primitive which may be required to yield explicitly They may enable specifying another function to take control Coroutines that explicitly yield allow cooperative multitasking See also edit nbsp Computer programming portalCoroutines Java software platform Common Language Runtime Java virtual machine Actor modelReferences edit pthread yield IBM Thread yield Javamex Retrieved 24 June 2011 Retrieved from https en wikipedia org w index php title Yield multithreading amp oldid 1146811009, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.