38 lines
953 B
HTML
38 lines
953 B
HTML
<HTML>
|
|
<HEAD>
|
|
|
|
<BR>
|
|
|
|
Neil Bergmann at Queensland University of Technology, Australia
|
|
created this project. Thanks Neil!
|
|
|
|
<BR>
|
|
<BR>
|
|
<BR>
|
|
|
|
<B>Concurrent threads:</B>
|
|
<p>
|
|
See the program <tt>add.cm</tt> (BACI C-- syntax).
|
|
This program
|
|
is a concurrent BACI program to add the first 100
|
|
integers using 10 concurrent threads. Using BACI, execute
|
|
this program 20 times and record the results. Identify the
|
|
problem(s) that exists in this example BACI program, and
|
|
correct the problem by adding appropriate additional code.
|
|
(You are not allowed to delete, replace, or modify existing
|
|
code in the example program.)
|
|
<p>
|
|
Written deliverables:
|
|
<OL>
|
|
<LI> A listing of your revised code; highlight the parts of
|
|
your revised code that are different from the original.
|
|
<LI> A brief explanation of why the original program
|
|
gives incorrect results.
|
|
<LI> A brief explanation of how your solution corrects this. (What is the
|
|
correct answer?)
|
|
</OL>
|
|
|
|
</BODY>
|
|
</HTML>
|
|
|