[Mono-bugs] [Bug 78243][Nor] Changed - multiple threads omitting and duplicating work

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat Apr 29 18:13:44 EDT 2006

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by miguel at ximian.com.


--- shadow/78243	2006-04-29 18:08:11.000000000 -0400
+++ shadow/78243.tmp.2661	2006-04-29 18:13:44.000000000 -0400
@@ -1,13 +1,13 @@
 Bug#: 78243
 Product: Mono: Class Libraries
 Version: 1.1
 OS: unknown
 OS Details: 
-Status: NEW   
+Status: RESOLVED   
+Resolution: NOTABUG
 Severity: Unknown
 Priority: Normal
 Component: System
 AssignedTo: mono-bugs at ximian.com                            
 ReportedBy: lion.vollnhals at googlemail.com               
 QAContact: mono-bugs at ximian.com
@@ -113,6 +113,16 @@
 (sub-)thread. When (sub-)threads are called with this local variable
 as their argument the behavior is suddenly as expected.
 ------- Additional Comments From lion.vollnhals at googlemail.com  2006-04-29 18:08 -------
 Btw. I am not sure that the _attached trace_ actually shows the
 problem. You may be better of to generate your own trace.
+------- Additional Comments From miguel at ximian.com  2006-04-29 18:13 -------
+Your program has a race condition. 
+The problem is arg will likely change  before the thread has a chance
+to start.  That is why you have to make a copy of the variable before
+passing the value to the routine.
+In my .NET computer I get 12 numbers all with the value "12" instead
+of a unique list as you expect. 

More information about the mono-bugs mailing list