[Insight-developers] RE: itkParallelSparseFieldLevelSetImageFilterTest - Deadlock

Miller, James V (Research) millerjv at crd . ge . com
Fri, 15 Aug 2003 13:52:25 -0400


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C36355.6E2E57ED
Content-Type: text/plain;
	charset="iso-8859-1"

I think this might be related to the use of the Barrier class.  A single
instance of the barrier object is used to synchronize the code in multiple
places.  I think what may be happening in the single processor case is that
once the barrier is satisfied, the threads start unrolling from the barrier
and continue on.  I think one thread is making it to the next barrier before
all the threads of finished unrolling from the first barrier.  
 
(My current best guess.)
 
 

-----Original Message-----
From: Miller, James V (Research) 
Sent: Friday, August 15, 2003 11:06 AM
To: Josh Cates (E-mail); Insight-developers (E-mail)
Subject: itkParallelSparseFieldLevelSetImageFilterTest - Deadlock


This test gets into a deadlock on my uniprocessor PC using Visual Studio
.NET.
 
 

Jim Miller 
_____________________________________
Visualization & Computer Vision
GE Research
Bldg. KW, Room C218B
P.O. Box 8, Schenectady NY 12301

millerjv at research . ge . com <mailto:millerjv at research . ge . com> 

james . miller at research . ge . com
(518) 387-4005, Dial Comm: 8*833-4005, 
Cell: (518) 505-7065, Fax: (518) 387-6981 

 


------_=_NextPart_001_01C36355.6E2E57ED
Content-Type: text/html;
	charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 6.00.2800.1141" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT color=#0000ff size=2><SPAN class=100264817-15082003>I think this 
might be related to the use of the Barrier class.&nbsp; A single instance of the 
barrier object is used to synchronize the code in multiple places.&nbsp; I think 
what may be happening in the single processor case is that once the barrier is 
satisfied, the threads start unrolling from the barrier and continue on.&nbsp; I 
think one thread is making it to the next barrier before all the threads of 
finished unrolling from the first barrier.&nbsp; </SPAN></FONT></DIV>
<DIV><FONT color=#0000ff size=2><SPAN 
class=100264817-15082003></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff size=2><SPAN class=100264817-15082003>(My current best 
guess.)</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff size=2><SPAN 
class=100264817-15082003></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff size=2><SPAN 
class=100264817-15082003></SPAN></FONT>&nbsp;</DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> Miller, James V (Research) 
  <BR><B>Sent:</B> Friday, August 15, 2003 11:06 AM<BR><B>To:</B> Josh Cates 
  (E-mail); Insight-developers (E-mail)<BR><B>Subject:</B> 
  itkParallelSparseFieldLevelSetImageFilterTest - Deadlock<BR><BR></FONT></DIV>
  <DIV><SPAN class=234420415-15082003><FONT size=2>This test gets into a 
  deadlock on my uniprocessor PC using Visual Studio .NET.</FONT></SPAN></DIV>
  <DIV><SPAN class=234420415-15082003><FONT size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=234420415-15082003><FONT size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV>
  <P style="MARGIN: 0in 0in 0pt"><B><SPAN 
  style="COLOR: navy; FONT-FAMILY: 'Comic Sans MS'">Jim Miller</SPAN></B> 
  <BR><B><I><SPAN 
  style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: Arial">_____________________________________</SPAN></I></B><BR><EM><SPAN 
  style="FONT-SIZE: 7.5pt; COLOR: black; FONT-FAMILY: Arial">Visualization &amp; 
  Computer Vision</SPAN></EM><I><SPAN 
  style="FONT-SIZE: 7.5pt; COLOR: black; FONT-FAMILY: Arial"><BR><EM>GE 
  Research</EM><BR><EM>Bldg. KW, Room C218B</EM><BR><EM>P.O. Box 8, Schenectady 
  NY 12301</EM><BR><BR></SPAN></I><EM><U><SPAN 
  style="FONT-SIZE: 7.5pt; COLOR: blue"><A 
  href="mailto:millerjv at research . ge . com">millerjv at research . ge . com</A></SPAN></U></EM></P>
  <P style="MARGIN: 0in 0in 0pt"><EM><U><SPAN 
  style="FONT-SIZE: 7.5pt; COLOR: blue">james . miller at research . ge . com</SPAN></U></EM><BR><I><SPAN 
  style="FONT-SIZE: 7.5pt; COLOR: black; FONT-FAMILY: Arial">(518) 387-4005, 
  Dial Comm: 8*833-4005, </SPAN></I><BR><I><SPAN 
  style="FONT-SIZE: 7.5pt; COLOR: black; FONT-FAMILY: Arial">Cell: (518) 
  505-7065, Fax: (518) 387-6981</SPAN></I> </P></DIV>
  <DIV>&nbsp;</DIV></BLOCKQUOTE></BODY></HTML>

------_=_NextPart_001_01C36355.6E2E57ED--