<?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 where can I find pthread_attr_create() function? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/where-can-i-find-pthread-attr-create-function/m-p/2497611#M728403</link>
    <description>I read materials "programming with threads on HP-UX" they use pthread_attr_create to create attribute object. but I can't find pthread_attr_create in my computer. I use hp11.0 and aCC 3.25. I have pthread lib and pthread.h on my machine. But I can find pthread_attr_create in pthread.h. I don't know  where can I find pthread_attr_create() function?</description>
    <pubDate>Fri, 23 Feb 2001 07:28:49 GMT</pubDate>
    <dc:creator>jack_8</dc:creator>
    <dc:date>2001-02-23T07:28:49Z</dc:date>
    <item>
      <title>where can I find pthread_attr_create() function?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/where-can-i-find-pthread-attr-create-function/m-p/2497611#M728403</link>
      <description>I read materials "programming with threads on HP-UX" they use pthread_attr_create to create attribute object. but I can't find pthread_attr_create in my computer. I use hp11.0 and aCC 3.25. I have pthread lib and pthread.h on my machine. But I can find pthread_attr_create in pthread.h. I don't know  where can I find pthread_attr_create() function?</description>
      <pubDate>Fri, 23 Feb 2001 07:28:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/where-can-i-find-pthread-attr-create-function/m-p/2497611#M728403</guid>
      <dc:creator>jack_8</dc:creator>
      <dc:date>2001-02-23T07:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: where can I find pthread_attr_create() function?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/where-can-i-find-pthread-attr-create-function/m-p/2497612#M728404</link>
      <description>DCE Pthreads Package&lt;BR /&gt;&lt;BR /&gt;On HP-UX 9.x, DCE pthreads provides the Reentrant C Library (libc_r.a), &lt;BR /&gt;the pthreads API based on POSIX.4a draft 4, the signal handling and the &lt;BR /&gt;exception handling support.  Applications written to DCE Pthreads&lt;BR /&gt;link with libc_r.a and libpthreads.a.  Applications that are multithreaded &lt;BR /&gt;should use cc_r for compiling threaded programs written to DCE pthreads. &lt;BR /&gt;&lt;BR /&gt;On HP-UX 10.x and 11.0, improvements were made to libc so that the Reentrant&lt;BR /&gt;C Library (libc_r.a) and cc_r are no longer necessary (they are still &lt;BR /&gt;provided for backward compatibility reasons).  Compilation and linking can be &lt;BR /&gt;accomplished by using the standard cc or c89 and libc.&lt;BR /&gt;&lt;BR /&gt;This table provides a mapping between CMA threads functions and POSIX&lt;BR /&gt;threads functions with equivalent functionality.  Consult the HP-UX man &lt;BR /&gt;pages for function prototype details.&lt;BR /&gt;&lt;BR /&gt;CMA Name                        Available in    POSIX Name      &lt;BR /&gt;----------------------------------------------------------------------------&lt;BR /&gt;atfork                          libcma only     pthread_atfork &lt;BR /&gt;hp__pthread_equal               libcma only&lt;BR /&gt;pthread__cancel_thread          libcma only     pthread_cancel&lt;BR /&gt;pthread_attr_create             libcma only     pthread_attr_init&lt;BR /&gt;pthread_attr_delete             libcma only     pthread_attr_destroy&lt;BR /&gt;pthread_attr_getguardsize_np    libcma only     pthread_attr_getguardsize&lt;BR /&gt;pthread_attr_getinheritsched    libcma only     pthread_attr_getinheritsched&lt;BR /&gt;pthread_attr_getprio            libcma only     pthread_attr_getschedparam&lt;BR /&gt;&lt;BR /&gt;It would appear they changed its name to pthread_attr_init if I'm interpreting the above correctly ?</description>
      <pubDate>Fri, 23 Feb 2001 09:25:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/where-can-i-find-pthread-attr-create-function/m-p/2497612#M728404</guid>
      <dc:creator>Alex Glennie</dc:creator>
      <dc:date>2001-02-23T09:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: where can I find pthread_attr_create() function?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/where-can-i-find-pthread-attr-create-function/m-p/2497613#M728405</link>
      <description>The book "programming with threads on HP-UX" doesn't apply to HP-UX 11.00's kernel threads which are the default. It is written, as Alex says, to describe the older DCE/CMA package (add flag -D_PTHREADS_DRAFT4 to the compile line and link with -lcma if you want this manual's APIs to appear). Have a look at "man pthread" on 11.00 to see some information about the new kernel threads package (link with -lpthread instead of -lcma for this).&lt;BR /&gt;&lt;BR /&gt;HP's major document for kernel threads is the book mentioned at the end of "man pthread", "ThreadTime" by Norton and Dipasquale. Also, look at the appropriate compiler manuals since they usually have information about the flags to use when compiling for threads. It may also be worth checking out some of the other Unix vendors documentation websites since POSIX threads is pretty standard now and while there may be a few implementation differences between platforms the API descriptions will be relevant.</description>
      <pubDate>Fri, 23 Feb 2001 09:40:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/where-can-i-find-pthread-attr-create-function/m-p/2497613#M728405</guid>
      <dc:creator>Andy Bennett</dc:creator>
      <dc:date>2001-02-23T09:40:11Z</dc:date>
    </item>
  </channel>
</rss>

