<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="place"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="country-region"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
p
{mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman";}
span.E-MailFormatvorlage17
{mso-style-type:personal-compose;
font-family:Arial;
color:windowtext;}
@page Section1
{size:595.3pt 841.9pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=DE link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>Seems I had a wrong address so my previous mail didn’t
reach the reflector, hopefully it does this time.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>Our application is using OFED 1.1 under SLES10.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>It is a point to point IB connection from a high
speed image scanner to a workstation. <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>The application is out in the market for about a
year.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>Now I get complains from the field that they do have
dead pthreads hanging around that are stuck in the ib_cm_get_event call.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>For your explanation I’m creating a new pthread
for every new attempt to connect from the workstation to the image scanner.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>This will happen only when one does re-power the
image scanner while having a connection established, this might happen often as
once a week to once a month.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>The reason for the complains now are that the
thread’s hanging in the ib_cm_get_event consume system resources and
might block the system after some 40 power cyles.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>They don’t want/can’t restart the
workstation application in order to get the old phreads destroyed.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>So my question is: How can I get a pthread out of the
ib_cm_get_event call without using pthread_kill?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><st1:PersonName w:st="on"><font size=2 face=Arial><span
lang=EN-GB style='font-size:10.0pt;font-family:Arial'>Thomas Bub</span></font></st1:PersonName><font
size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'> <o:p></o:p></span></font></p>
<p style='margin-bottom:12.0pt'><font size=2 color=gray face=Arial><span
lang=EN-GB style='font-size:10.0pt;font-family:Arial;color:gray'>................................................................................<br>
Thomas Bub</span></font><font size=2 face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial'><br>
<font color=gray><span style='color:gray'>Senior Software Engineer<br>
<st1:place w:st="on"><st1:City w:st="on">Grass Valley</st1:City> <st1:country-region
w:st="on">Germany</st1:country-region></st1:place> GmbH<br>
Brunnenweg 9<br>
64331 <st1:place w:st="on"><st1:City w:st="on">Weiterstadt</st1:City>, <st1:country-region
w:st="on">Germany</st1:country-region></st1:place><br>
Tel: +49 6150 104 147<br>
Fax: +49 6150 104 656<br>
Email: </span></font></span></font><u><font size=2 color=blue face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:blue'><a
href="mailto:Thomas.Bub@thomson.net" title="mailto:Thomas.Bub@thomson.net"><span
lang=EN-GB>Thomas.Bub@thomson.net</span></a></span></font></u><font size=2
color=gray face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:
Arial;color:gray'><br>
</span></font><font size=2 color=gray face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:gray'><a href="http://www.grassvalley.com"
title="http://www.grassvalley.com/"><span lang=EN-GB>www.GrassValley.com </span></a></span></font><font
size=2 color=gray face=Arial><span lang=EN-GB style='font-size:10.0pt;
font-family:Arial;color:gray'><br>
<br>
<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:35.4pt'><font size=3
face="Times New Roman"><span lang=EN-GB style='font-size:12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-GB
style='font-size:12.0pt'><o:p> </o:p></span></font></p>
</div>
</body>
</html>