<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic is thread alive ? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/is-thread-alive/m-p/4071849#M735231</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Is there a API in pthread to get the state of the thread on hp-ux ?&lt;BR /&gt;&lt;BR /&gt;State of the thread I meant by what time the thread started, whether the&lt;BR /&gt;thread still exists.&lt;BR /&gt;&lt;BR /&gt;I could find pstat_getlwp but it would take lwpid as the argument ? any&lt;BR /&gt;alternatives of converting a pthread_t to lwp willalso help ..&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;&lt;BR /&gt;Shankar K E&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 18 Sep 2007 01:00:48 GMT</pubDate>
    <dc:creator>pthread</dc:creator>
    <dc:date>2007-09-18T01:00:48Z</dc:date>
    <item>
      <title>is thread alive ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/is-thread-alive/m-p/4071849#M735231</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Is there a API in pthread to get the state of the thread on hp-ux ?&lt;BR /&gt;&lt;BR /&gt;State of the thread I meant by what time the thread started, whether the&lt;BR /&gt;thread still exists.&lt;BR /&gt;&lt;BR /&gt;I could find pstat_getlwp but it would take lwpid as the argument ? any&lt;BR /&gt;alternatives of converting a pthread_t to lwp willalso help ..&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;&lt;BR /&gt;Shankar K E&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Sep 2007 01:00:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/is-thread-alive/m-p/4071849#M735231</guid>
      <dc:creator>pthread</dc:creator>
      <dc:date>2007-09-18T01:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: is thread alive ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/is-thread-alive/m-p/4071850#M735232</link>
      <description>Same as kill, checks but doesn't kill it: pthread_kill(thread, 0);&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B2355-60130/pthread_kill.3T.html" target="_blank"&gt;http://docs.hp.com/en/B2355-60130/pthread_kill.3T.html&lt;/A&gt;</description>
      <pubDate>Tue, 18 Sep 2007 02:27:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/is-thread-alive/m-p/4071850#M735232</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-09-18T02:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: is thread alive ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/is-thread-alive/m-p/4071851#M735233</link>
      <description>Hi Dennis,&lt;BR /&gt;&lt;BR /&gt;Thanks for the reply.&lt;BR /&gt;&lt;BR /&gt;But if the pthread_id gets reused then I have to use the &lt;BR /&gt;start time of the thread, is there an API to do that in &lt;BR /&gt;the pthread library ?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Shankar</description>
      <pubDate>Tue, 18 Sep 2007 02:32:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/is-thread-alive/m-p/4071851#M735233</guid>
      <dc:creator>pthread</dc:creator>
      <dc:date>2007-09-18T02:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: is thread alive ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/is-thread-alive/m-p/4071852#M735234</link>
      <description>&amp;gt;But if the pthread_id gets reused then I have to use the start time of the thread, is there an API to do that in the pthread library?&lt;BR /&gt;&lt;BR /&gt;In a simple case I tried, I didn't see any reuse of the thread id but I don't think that is guaranteed.</description>
      <pubDate>Tue, 18 Sep 2007 02:49:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/is-thread-alive/m-p/4071852#M735234</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-09-18T02:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: is thread alive ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/is-thread-alive/m-p/4071853#M735235</link>
      <description>So we have to need an API from pthread right ?&lt;BR /&gt;&lt;BR /&gt;pstat_getlwp returns a very good piece of information, is there any in the same manner of pthread.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Sep 2007 03:17:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/is-thread-alive/m-p/4071853#M735235</guid>
      <dc:creator>pthread</dc:creator>
      <dc:date>2007-09-18T03:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: is thread alive ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/is-thread-alive/m-p/4071854#M735236</link>
      <description>&amp;gt;So we have to need an API from pthread right?&lt;BR /&gt;&lt;BR /&gt;You need to remember all of the threads you created and make sure you remove the ones that die.</description>
      <pubDate>Tue, 18 Sep 2007 04:08:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/is-thread-alive/m-p/4071854#M735236</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-09-18T04:08:46Z</dc:date>
    </item>
  </channel>
</rss>

