Multiple Choice
Methods declared as ________ encapsulate critical sections of a program that can only be occupied by one thread at a time.
A) static
B) synchronized
C) private
D) protected
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q7: Which variable(s) must be shared between threads
Q8: A thread can exit a monitor by
Q9: _ supports concurrent programming, in addition to
Q10: In the Java implementation of the producer/consumer
Q11: If the producer and consumer work at
Q13: _ is a software architectural technique that
Q14: In Java, a(n)_ is a queue of
Q15: Which of the following statements about using
Q16: In Java, the _ method wakes all
Q17: To avoid indefinite postponement, a monitor _.<br>A)