单选题:Which of the following best describes the use of the synchronize
Which of the following best describes the use of the synchronized keyword? @[B](2)
A. Allows two process to run in parallel but to communicate with each other
B. Ensures only one thread at a time may access a method or object
C. Ensures that two or more processes will start and end at the same time
D. Ensures that two or more Threads will start and end at the same time
A.Allows two process to run in parallel but to communicate with each other
B.Ensures only one thread at a time may access a method or object
C.Ensures that two or more processes will start and end at the same time
D.Ensures that two or more Threads will start and end at the same time
答案:B
A. Allows two process to run in parallel but to communicate with each other
B. Ensures only one thread at a time may access a method or object
C. Ensures that two or more processes will start and end at the same time
D. Ensures that two or more Threads will start and end at the same time
A.Allows two process to run in parallel but to communicate with each other
B.Ensures only one thread at a time may access a method or object
C.Ensures that two or more processes will start and end at the same time
D.Ensures that two or more Threads will start and end at the same time
答案:B