Card 20 / 22: 4. [8 points]: Louis writes a multithreaded program, which produces an incorrect answer some of the time, but always completes. He suspects a race condition. Which of the following are strategies that can reduce or eliminate race conditions in Louis’s program?Ensure that all locks are acquired in the same order.
A)
True
B)
False
Answer:
B) False
Previous Card | ← Previous Card Button |
Next Card | → Next Card Button |
Flip Card | Space-Bar |
|
Computer System Engineering 6.033 Spring 2009
Author:
Prof.Robert MorrisProfessor
MIT Massachusetts Institute of Technology
USA
Access: |