3303-flashcards/hATaBiZQ - 3303/NGi8dAzd - What are three ways a thread voluntarily relinquishes the processor.md
2026-04-20 23:08:47 -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.