"Hi, Amigo!"
Interview questions | |
---|---|
1 | Name all the states of a Thread object. |
2 | What states might a thread switch to when it enters a synchronized block? |
3 | What state will a thread enter when the wait() method is called? |
4 | What state will a thread enter if wait(500) is called? |
5 | What state will a thread enter when the notify() method is called? |
6 | What state will a thread enter when the notifyAll() method is called? |
7 | Three threads in a synchronized block called wait() on a mutex object. What state will these threads enter if a fourth thread calls notifyAll()? |
8 | What is the difference between join(500) and wait(500)? |
9 | What is the difference between wait(500) and sleep(500)? |
10 | What state will a thread enter when the yield() method is called? |
GO TO FULL VERSION