"Ciao, Amico!"
| Domande di un'intervista | |
|---|---|
| 1 | Assegna un nome a tutti gli stati di un oggetto Thread. |
| 2 | A quali stati potrebbe passare un thread quando entra in un blocco sincronizzato? |
| 3 | In quale stato entrerà un thread quando viene chiamato il metodo wait()? |
| 4 | In quale stato entrerà un thread se viene chiamato wait(500)? |
| 5 | In quale stato entrerà un thread quando viene chiamato il metodo notify()? |
| 6 | In quale stato entrerà un thread quando viene chiamato il metodo notifyAll()? |
| 7 | Tre thread in un blocco sincronizzato chiamato wait() su un oggetto mutex. In quale stato entreranno questi thread se un quarto thread chiama notifyAll()? |
| 8 | Qual è la differenza tra join(500) e wait(500)? |
| 9 | Qual è la differenza tra wait(500) e sleep(500)? |
| 10 | In quale stato entrerà un thread quando viene chiamato il metodo yield()? |
GO TO FULL VERSION