3303-flashcards/hATaBiZQ - 3303/NGi8dAzd - What are three ways a thread voluntarily relinquishes the processor.md
gwg313 e83b60af4f
first commit
update readme

reformat
2026-04-20 23:10:20 -04:00

290 B

What are three ways a thread voluntarily relinquishes the processor?


🙋

  1. Thread.yield(): Explicitly giving up the processor.
  2. Thread.sleep(): Ceasing execution for a specific time.
  3. Object.wait(): Waiting for a notification from another thread.