<?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 Re: how  to determine thread status from different thread in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-thread-status-from-different-thread/m-p/3219498#M714402</link>
    <description>If those monitored threads are cooperating, you could add a cancellation cleanup handler to each thread with pthread_cleanup_push().  Then your monitoring thread could just look at a data structure that is updated by the cancellation handler of each thread.</description>
    <pubDate>Thu, 18 Mar 2004 12:18:29 GMT</pubDate>
    <dc:creator>Mike Stroyan</dc:creator>
    <dc:date>2004-03-18T12:18:29Z</dc:date>
    <item>
      <title>how  to determine thread status from different thread</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-thread-status-from-different-thread/m-p/3219496#M714400</link>
      <description>I am considering building a "monitoring thread" that will have a list of detached running threads. How can I test if these running, but detached threads are still executing? I don't wish to use pthread_join, as this will block. Any ideas?Thanks.</description>
      <pubDate>Mon, 15 Mar 2004 19:28:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-thread-status-from-different-thread/m-p/3219496#M714400</guid>
      <dc:creator>Ken_109</dc:creator>
      <dc:date>2004-03-15T19:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: how  to determine thread status from different thread</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-thread-status-from-different-thread/m-p/3219497#M714401</link>
      <description>Te options I know of :&lt;BR /&gt;(a)Use DCE threads by using libcma.sl and not use pthreads&lt;BR /&gt;(b) Use the multithreaded unsupported lib written for this purpose&lt;BR /&gt;&lt;A href="http://ftp.x.org/pub/unsupported/lib/pcthreads/" target="_blank"&gt;http://ftp.x.org/pub/unsupported/lib/pcthreads/&lt;/A&gt;&lt;BR /&gt;(c)Use certain mechanisms in Java to achieve the same&lt;BR /&gt;</description>
      <pubDate>Tue, 16 Mar 2004 16:17:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-thread-status-from-different-thread/m-p/3219497#M714401</guid>
      <dc:creator>Paddy_1</dc:creator>
      <dc:date>2004-03-16T16:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: how  to determine thread status from different thread</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-thread-status-from-different-thread/m-p/3219498#M714402</link>
      <description>If those monitored threads are cooperating, you could add a cancellation cleanup handler to each thread with pthread_cleanup_push().  Then your monitoring thread could just look at a data structure that is updated by the cancellation handler of each thread.</description>
      <pubDate>Thu, 18 Mar 2004 12:18:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-thread-status-from-different-thread/m-p/3219498#M714402</guid>
      <dc:creator>Mike Stroyan</dc:creator>
      <dc:date>2004-03-18T12:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: how  to determine thread status from different thread</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-thread-status-from-different-thread/m-p/3219499#M714403</link>
      <description>Thanks for the above suggestions:I figured out an interesting technique use pthread_getschedparam. This takes the thread id.. If the thread is not found it returns ESRCH error. I created a subroutine around this to check the thread status (ie, running,,, or ESRCH not running )...</description>
      <pubDate>Thu, 18 Mar 2004 16:36:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-thread-status-from-different-thread/m-p/3219499#M714403</guid>
      <dc:creator>Ken_109</dc:creator>
      <dc:date>2004-03-18T16:36:51Z</dc:date>
    </item>
  </channel>
</rss>

