<?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 Error during thread creation. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/error-during-thread-creation/m-p/3624332#M816680</link>
    <description>Hi All,&lt;BR /&gt;      We are working on a multi threaded application on an HPUX machine. After creating n (i call it n because its variable) number of threads (not running simultaneously) the pthread_create returns an error (ENOMEM), no memory available. &lt;BR /&gt;&lt;BR /&gt;At a time there are maximum 10 threads running simultaneously. That is guaranteed. How ever the application brings up threads (maximum 10) as an when the load on the application increases.&lt;BR /&gt;&lt;BR /&gt;From limits.h&lt;BR /&gt;/*&lt;BR /&gt; * number of threads per process&lt;BR /&gt; */&lt;BR /&gt;#  define _POSIX_THREAD_THREADS_MAX              64&lt;BR /&gt;&lt;BR /&gt;What could be causing this error and how do we rectify it? Will compiling the code as a 64 bit executable help? &lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Saurav.&lt;BR /&gt;</description>
    <pubDate>Tue, 13 Sep 2005 00:38:06 GMT</pubDate>
    <dc:creator>Saurav Narain</dc:creator>
    <dc:date>2005-09-13T00:38:06Z</dc:date>
    <item>
      <title>Error during thread creation.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-during-thread-creation/m-p/3624332#M816680</link>
      <description>Hi All,&lt;BR /&gt;      We are working on a multi threaded application on an HPUX machine. After creating n (i call it n because its variable) number of threads (not running simultaneously) the pthread_create returns an error (ENOMEM), no memory available. &lt;BR /&gt;&lt;BR /&gt;At a time there are maximum 10 threads running simultaneously. That is guaranteed. How ever the application brings up threads (maximum 10) as an when the load on the application increases.&lt;BR /&gt;&lt;BR /&gt;From limits.h&lt;BR /&gt;/*&lt;BR /&gt; * number of threads per process&lt;BR /&gt; */&lt;BR /&gt;#  define _POSIX_THREAD_THREADS_MAX              64&lt;BR /&gt;&lt;BR /&gt;What could be causing this error and how do we rectify it? Will compiling the code as a 64 bit executable help? &lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Saurav.&lt;BR /&gt;</description>
      <pubDate>Tue, 13 Sep 2005 00:38:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-during-thread-creation/m-p/3624332#M816680</guid>
      <dc:creator>Saurav Narain</dc:creator>
      <dc:date>2005-09-13T00:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: Error during thread creation.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-during-thread-creation/m-p/3624333#M816681</link>
      <description>Check your kernel settings.&lt;BR /&gt;&lt;BR /&gt;max_thread_proc and nkthread&lt;BR /&gt;&lt;BR /&gt;Also, check, ulimit -Sa and ulimit -Ha befire you start your apps.</description>
      <pubDate>Tue, 13 Sep 2005 01:12:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-during-thread-creation/m-p/3624333#M816681</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-09-13T01:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: Error during thread creation.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-during-thread-creation/m-p/3624334#M816682</link>
      <description>Saurav,&lt;BR /&gt;check also your application, for thread allocation.&lt;BR /&gt;&lt;BR /&gt;this link may be useful:&lt;BR /&gt;&lt;A href="http://h21007.www2.hp.com/dspp/tech/tech_TechSingleTipDetailPage_IDX/1,2366,150,00.html" target="_blank"&gt;http://h21007.www2.hp.com/dspp/tech/tech_TechSingleTipDetailPage_IDX/1,2366,150,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Alex</description>
      <pubDate>Tue, 13 Sep 2005 03:26:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-during-thread-creation/m-p/3624334#M816682</guid>
      <dc:creator>Alessandro Pilati</dc:creator>
      <dc:date>2005-09-13T03:26:53Z</dc:date>
    </item>
  </channel>
</rss>

