5. Life cycle of a thread.
6. Demon and none Demon threads, comparison.
7. Runnable vs Thread for running a new thread. Best practice.
8. Threads Scheduler: what is it, how it manages threads.
9. Monitor in Java. Monitor usage best practice.
10. How Thread Scheduler manages thread conditions.
11. Thread scheduler, threads and monitor interaction.
12.: overview, comparison, best practice to use.
13. Methods of Object class to manage threads: overview, how to use.
14. Why methods to manage threads in two different classes?
15. Sleep vs wait.
16. What is a volatile variable in Java? How does it work?
17. How synchronization works in Java. Best practice.
18. Synchronize and volatile difference.
19. Atomic operations.
20.Range of thread safe types/design patterns (from immutable to not thread
safe);
21.
What is deadlock? (AK)
21.1. What strategies do you know for preventing deadlock?
(AK)
22.
How many ways to create a thread do you know? (Thread, Runnable,
Callable
) (AK)
23.
What is the Future class used for? (AK)
24.
What are the advantages of Callable over Runnable? (AK)
25. What thread priorities are there? (AK)
26.
Can you stop a thread by reducing its priority to 0? (AK)
Dostları ilə paylaş: