first commit
update readme reformat
This commit is contained in:
commit
e83b60af4f
155 changed files with 1143 additions and 0 deletions
|
|
@ -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.
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue