<?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 Get thread stack size + base in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/get-thread-stack-size-base/m-p/2850544#M93491</link>
    <description>I want to get a pthread's stack size + base addr without knowing or modifying where the thread was created.&lt;BR /&gt;&lt;BR /&gt;The pthread.h seems to contain exactly what I need, unfortunately no doc.&lt;BR /&gt;&lt;BR /&gt;Tried :&lt;BR /&gt;{ struct _pthread_stack_info info;&lt;BR /&gt;  pthread_t self = pthread_self();&lt;BR /&gt;  int result = _pthread_stack_info_np(self, &amp;amp;info);&lt;BR /&gt;  printf ("Result %d, Stacksize %d\n", result, info.stk_stacksize);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Unfortunately I get result 3 and stacksize zero...&lt;BR /&gt;&lt;BR /&gt;Any ideas ?&lt;BR /&gt;</description>
    <pubDate>Fri, 22 Nov 2002 23:18:48 GMT</pubDate>
    <dc:creator>Stef Van Vlierberghe</dc:creator>
    <dc:date>2002-11-22T23:18:48Z</dc:date>
    <item>
      <title>Get thread stack size + base</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/get-thread-stack-size-base/m-p/2850544#M93491</link>
      <description>I want to get a pthread's stack size + base addr without knowing or modifying where the thread was created.&lt;BR /&gt;&lt;BR /&gt;The pthread.h seems to contain exactly what I need, unfortunately no doc.&lt;BR /&gt;&lt;BR /&gt;Tried :&lt;BR /&gt;{ struct _pthread_stack_info info;&lt;BR /&gt;  pthread_t self = pthread_self();&lt;BR /&gt;  int result = _pthread_stack_info_np(self, &amp;amp;info);&lt;BR /&gt;  printf ("Result %d, Stacksize %d\n", result, info.stk_stacksize);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Unfortunately I get result 3 and stacksize zero...&lt;BR /&gt;&lt;BR /&gt;Any ideas ?&lt;BR /&gt;</description>
      <pubDate>Fri, 22 Nov 2002 23:18:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/get-thread-stack-size-base/m-p/2850544#M93491</guid>
      <dc:creator>Stef Van Vlierberghe</dc:creator>
      <dc:date>2002-11-22T23:18:48Z</dc:date>
    </item>
  </channel>
</rss>

