<?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: pthread_create in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/pthread-create/m-p/4062851#M94508</link>
    <description>&lt;P&gt;&amp;gt;I am using -lpthread and not -lc for link.&lt;BR /&gt;&lt;BR /&gt;You need to make sure that none of the shlibs you use are linked with -lc either. Try ldd on your application.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I can't understand what you said exactly about pthread_mutex_lock stub returns zero.&lt;BR /&gt;&lt;BR /&gt;He means if you have your shlibs in the wrong order, you're hosed. See the link Awadhesh mentions.&lt;BR /&gt;&lt;BR /&gt;Hmm, this may be all wrong. That errno 22 is related to shl_load.&lt;BR /&gt;&lt;BR /&gt;If you are calling pthead_create and you have the wrong order, you get ENOSYS, 251.&lt;BR /&gt;&lt;BR /&gt;Basically you get 22, EINVAL, by:&lt;BR /&gt;invalid thread attributes&lt;BR /&gt;The value specified by thread is invalid.&lt;BR /&gt;The scheduling policy or scheduling attributes&lt;BR /&gt;&lt;BR /&gt;You need to look at your parms closely. Try replacing your attributes by NULL and check again.&lt;/P&gt;</description>
    <pubDate>Sat, 28 Sep 2013 21:49:50 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2013-09-28T21:49:50Z</dc:date>
    <item>
      <title>pthread_create</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pthread-create/m-p/4062847#M94504</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;My application fails because pthread_create is failing with a return value 22.&lt;BR /&gt;&lt;BR /&gt;Can any one help me for same...&lt;BR /&gt;&lt;BR /&gt;Thanks in Advance.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Subrat&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Aug 2007 02:41:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pthread-create/m-p/4062847#M94504</guid>
      <dc:creator>subrat chaudhary</dc:creator>
      <dc:date>2007-08-30T02:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: pthread_create</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pthread-create/m-p/4062848#M94505</link>
      <description>Have you linked with -lpthread?  And made sure there are NO -lc on the driver link line?</description>
      <pubDate>Thu, 30 Aug 2007 03:12:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pthread-create/m-p/4062848#M94505</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-08-30T03:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: pthread_create</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pthread-create/m-p/4062849#M94506</link>
      <description>calls to shl_load(3x) fail with errno 22 (invalid  argument) because the pthread_mutex_lock stub returns zero &lt;BR /&gt;&lt;A href="http://docs.hp.com/en/1896/pthreads.html" target="_blank"&gt;http://docs.hp.com/en/1896/pthreads.html&lt;/A&gt;</description>
      <pubDate>Thu, 30 Aug 2007 04:00:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pthread-create/m-p/4062849#M94506</guid>
      <dc:creator>AwadheshPandey</dc:creator>
      <dc:date>2007-08-30T04:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: pthread_create</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pthread-create/m-p/4062850#M94507</link>
      <description>Hi Dennis,&lt;BR /&gt;&lt;BR /&gt;I am using -lpthread and not -lc for link.&lt;BR /&gt;my appliction is not stop in first time.some time after error is comming and its stop.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hi Awadhes,&lt;BR /&gt;&lt;BR /&gt;I can't understand what you said exectly about pthread_mutex_lock stub returns zero .&lt;BR /&gt;Please explain.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Subrat&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Aug 2007 04:45:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pthread-create/m-p/4062850#M94507</guid>
      <dc:creator>subrat chaudhary</dc:creator>
      <dc:date>2007-08-30T04:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: pthread_create</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pthread-create/m-p/4062851#M94508</link>
      <description>&lt;P&gt;&amp;gt;I am using -lpthread and not -lc for link.&lt;BR /&gt;&lt;BR /&gt;You need to make sure that none of the shlibs you use are linked with -lc either. Try ldd on your application.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I can't understand what you said exactly about pthread_mutex_lock stub returns zero.&lt;BR /&gt;&lt;BR /&gt;He means if you have your shlibs in the wrong order, you're hosed. See the link Awadhesh mentions.&lt;BR /&gt;&lt;BR /&gt;Hmm, this may be all wrong. That errno 22 is related to shl_load.&lt;BR /&gt;&lt;BR /&gt;If you are calling pthead_create and you have the wrong order, you get ENOSYS, 251.&lt;BR /&gt;&lt;BR /&gt;Basically you get 22, EINVAL, by:&lt;BR /&gt;invalid thread attributes&lt;BR /&gt;The value specified by thread is invalid.&lt;BR /&gt;The scheduling policy or scheduling attributes&lt;BR /&gt;&lt;BR /&gt;You need to look at your parms closely. Try replacing your attributes by NULL and check again.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Sep 2013 21:49:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pthread-create/m-p/4062851#M94508</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2013-09-28T21:49:50Z</dc:date>
    </item>
  </channel>
</rss>

