Question 15 / 18: 

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
<< First < Previous Flashcard Next > Last >>
Explanation:

TRUE. Although this approach may slow down the system, it will ensure there are no races. (The threads would no longer share memory, and a race condition can only happen when threads actually share memory.)

Exam Home Page
https://www.jobilize.com/computer-system-engineering-exam-by-prof-robert-morris-mit

Computer System Engineering 6.033 Spring 2009

Author:

Access: Public Instant Grading

Attribution:  Morris, Robert, and Samuel Madden. 6.033 Computer System Engineering, Spring 2009. (MIT OpenCourseWare: Massachusetts Institute of Technology), http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-033-computer-system-engineering-spring-2009 (Accessed 2 May, 2014). License: Creative Commons BY-NC-SA
Ask
Danielle Stephens
Start Quiz
Marion Cabalfin
Start Quiz
Joanna Smithback
Start Quiz
Jill Zerressen
Start Quiz
Edgar Delgado
Start Quiz
Copy and paste the following HTML code into your website or blog.
<iframe src="https://www.jobilize.com/embed/computer-system-engineering-exam-by-prof-robert-morris-mit" width="600" height="600" frameborder="0" marginwidth="0" marginheight="0" scrolling="yes" style="border:1px solid #CCC; border-width:1px 1px 0; margin-bottom:5px" allowfullscreen webkitallowfullscreen mozallowfullscreen> </iframe>