We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45c3c9d commit 3dff63fCopy full SHA for 3dff63f
interviewQuestions.md
@@ -92,11 +92,11 @@ stop(executor);
92
- `wait()`
93
- release the lock or monitor
94
- wait is used for inter-thread communication
95
- - 在`java.lang.Thread`类中,提供了`sleep()`
+ - `java.lang.Object`类中提供了`wait()`
96
- `sleep()`
97
- doesn't release any lock or monitor while waiting
98
- leep is used to introduce pause on execution.
99
- - `java.lang.Object`类中提供了`wait()`
+ - `java.lang.Thread`类中,提供了`sleep()`
100
- sleep need try catch interruption
101
102
#### 12. What is difference between CyclicBarriar and CountdownLatch in Java ?
0 commit comments