<?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: Difference between using pthread and lpthread in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-using-pthread-and-lpthread/m-p/3425476#M707315</link>
    <description>Hi&lt;BR /&gt;&lt;BR /&gt;From&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.aero.lr.tudelft.nl/facilities/manuals/ansic/threads.html#RN.CVT.NN586" target="_blank"&gt;http://www.aero.lr.tudelft.nl/facilities/manuals/ansic/threads.html#RN.CVT.NN586&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Accessing the Pthreads Library&lt;BR /&gt;Pthreads (POSIX threads) refers to the Pthreads library of thread-management routines. For information on Pthread routines see the pthread(3t) man page. &lt;BR /&gt;To use the Pthread routines, your program must include the &lt;PTHREADS.H&gt; header file and the Pthreads library must be explicitly linked to your program. For example: &lt;BR /&gt;&lt;BR /&gt;% cc -D_POSIX_C_SOURCE+199506L prog.c -lpthread &lt;BR /&gt;&lt;BR /&gt;The -D_POSIX_C_SOURCE=199506L string specifies the appropriate POSIX revision level. In this case, the level is 199506L. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;So -l tells the compiler to use pthread&lt;BR /&gt;&lt;BR /&gt;It is not seperate&lt;BR /&gt;&lt;BR /&gt;              Steve STeel&lt;/PTHREADS.H&gt;</description>
    <pubDate>Fri, 19 Nov 2004 11:01:07 GMT</pubDate>
    <dc:creator>Steve Steel</dc:creator>
    <dc:date>2004-11-19T11:01:07Z</dc:date>
    <item>
      <title>Difference between using pthread and lpthread</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-using-pthread-and-lpthread/m-p/3425474#M707313</link>
      <description>When I compile a third party C application with a -lpthread in the LIB environment variable everything runs fine.  But if I use just the -pthread in the LIB environment varible then I receive an error 68 at runtime.&lt;BR /&gt;&lt;BR /&gt;Is there any difference between these libraries ? And any reason that HPUX ships both these ?</description>
      <pubDate>Thu, 18 Nov 2004 13:23:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-using-pthread-and-lpthread/m-p/3425474#M707313</guid>
      <dc:creator>Mani Subramanian</dc:creator>
      <dc:date>2004-11-18T13:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between using pthread and lpthread</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-using-pthread-and-lpthread/m-p/3425475#M707314</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;When compile with -lpthread it links with the libpthread lib,&lt;BR /&gt;when you compile with -pthread&lt;BR /&gt;it is cc -p -thread&lt;BR /&gt;&lt;BR /&gt;So the it is not the right syntax.</description>
      <pubDate>Fri, 19 Nov 2004 05:59:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-using-pthread-and-lpthread/m-p/3425475#M707314</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2004-11-19T05:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between using pthread and lpthread</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-using-pthread-and-lpthread/m-p/3425476#M707315</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;From&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.aero.lr.tudelft.nl/facilities/manuals/ansic/threads.html#RN.CVT.NN586" target="_blank"&gt;http://www.aero.lr.tudelft.nl/facilities/manuals/ansic/threads.html#RN.CVT.NN586&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Accessing the Pthreads Library&lt;BR /&gt;Pthreads (POSIX threads) refers to the Pthreads library of thread-management routines. For information on Pthread routines see the pthread(3t) man page. &lt;BR /&gt;To use the Pthread routines, your program must include the &lt;PTHREADS.H&gt; header file and the Pthreads library must be explicitly linked to your program. For example: &lt;BR /&gt;&lt;BR /&gt;% cc -D_POSIX_C_SOURCE+199506L prog.c -lpthread &lt;BR /&gt;&lt;BR /&gt;The -D_POSIX_C_SOURCE=199506L string specifies the appropriate POSIX revision level. In this case, the level is 199506L. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;So -l tells the compiler to use pthread&lt;BR /&gt;&lt;BR /&gt;It is not seperate&lt;BR /&gt;&lt;BR /&gt;              Steve STeel&lt;/PTHREADS.H&gt;</description>
      <pubDate>Fri, 19 Nov 2004 11:01:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-using-pthread-and-lpthread/m-p/3425476#M707315</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2004-11-19T11:01:07Z</dc:date>
    </item>
  </channel>
</rss>

