Exercises
23.5 (True or False) State whether each of the following is true or false. If false, explain why.
-
Method
sleep
does not consume processor time while a thread sleeps. -
JavaFX components are thread safe.
-
(Advanced) Declaring a method
synchronized
guarantees that deadlock cannot occur. -
(Advanced) Once a
ReentrantLock
has been obtained by a thread, theReentrantLock
object will not allow another thread to obtain the lock until the first thread releases it.
-
23.6 (Multithreading Terms) Define each of the following terms.
-
thread
-
multithreading
-
runnable state
-
timed waiting state
-
preemptive scheduling
-
Runnable
interface -
producer/consumer relationship
-
quantum
-
23.7 (Advanced: Multithreading Terms) Discuss each of the following ...
Get Java How to Program, Early Objects, 11th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.