Card 17 / 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?Separate a multi-threaded program into multiple single-threaded programs (each with its own address space) and share data between them via an inter-program communication primitive like pipes.
A)
True
B)
False
Answer:
A) True
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: |