This commit is contained in:
gwg313 2026-04-20 23:04:31 -04:00
parent 316cf8c1d6
commit e5aef8679f
Signed by: gwg313
GPG key ID: 60FF63B4826B7400
159 changed files with 1141 additions and 1100 deletions

View file

@ -0,0 +1,12 @@
## 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.