<?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 Pthread in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/pthread/m-p/4442673#M42471</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;There is a multi threaded process running on VMS 7.3-1&lt;BR /&gt;&lt;BR /&gt;Is there any way to determine that the process is a multithreaded (Pthread).&lt;BR /&gt;&lt;BR /&gt;$sh sys/multi does not show that it is a multi thread process.&lt;BR /&gt;&lt;BR /&gt;Is Kthread has anything to do with Pthread ?&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
    <pubDate>Thu, 18 Jun 2009 15:41:00 GMT</pubDate>
    <dc:creator>Mulder_1</dc:creator>
    <dc:date>2009-06-18T15:41:00Z</dc:date>
    <item>
      <title>Pthread</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/pthread/m-p/4442673#M42471</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;There is a multi threaded process running on VMS 7.3-1&lt;BR /&gt;&lt;BR /&gt;Is there any way to determine that the process is a multithreaded (Pthread).&lt;BR /&gt;&lt;BR /&gt;$sh sys/multi does not show that it is a multi thread process.&lt;BR /&gt;&lt;BR /&gt;Is Kthread has anything to do with Pthread ?&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Thu, 18 Jun 2009 15:41:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/pthread/m-p/4442673#M42471</guid>
      <dc:creator>Mulder_1</dc:creator>
      <dc:date>2009-06-18T15:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: Pthread</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/pthread/m-p/4442674#M42472</link>
      <description>Mulder,&lt;BR /&gt;&lt;BR /&gt;what problem are you trying to solve ?&lt;BR /&gt;&lt;BR /&gt;You can use SDA to determine, if a process is running pthreads:&lt;BR /&gt;&lt;BR /&gt;$ ANAL/SYS&lt;BR /&gt;SDA&amp;gt; SET PROC/IND=&lt;PID-OF-PROCESS&gt;&lt;BR /&gt;SDA&amp;gt; pthread t&lt;BR /&gt;&lt;BR /&gt;will print following message, if process is not threaded:&lt;BR /&gt;&lt;BR /&gt;Process "CLUSTER_SERVER" (PID 20200087) is not threaded&lt;BR /&gt;&lt;BR /&gt;SDA&amp;gt; SHOW PROC/IMA and look for PTHREAD$RTL&lt;BR /&gt;&lt;BR /&gt;Kernel threads support multiple execution contexts within a single OpenVMS process (since OpenVMS Alpha V7.0). DECthreads (pthread) is a user mode thread manager, kernel threads are the basis for OpenVMS scheduling inside the executive.&lt;BR /&gt;&lt;BR /&gt;The system parameter MULTITHREAD determines the amount of multithreading possible.&lt;BR /&gt;&lt;BR /&gt;Volker.&lt;/PID-OF-PROCESS&gt;</description>
      <pubDate>Thu, 18 Jun 2009 16:04:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/pthread/m-p/4442674#M42472</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2009-06-18T16:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: Pthread</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/pthread/m-p/4442675#M42473</link>
      <description>Mulder,&lt;BR /&gt;&lt;BR /&gt;  Pthread is really an implementation of "coroutines" - that is, a number of threads of execution which timeshare within a single process. They (obviously) share the same address space and data. Only one thread can execute at a particular time. Thread scheduling is done by the Pthread library within the process. This is usermode, which you could implement yourself without privilege.&lt;BR /&gt;&lt;BR /&gt;  Kthread is very different. Each thread has most of the attributes of an independent process. The special thing about the threads is they share the same address space. Scheduling is by the operating system, and, in a multi processor environment, independent threads can execute simultaneously. This cannot be done without privilege.&lt;BR /&gt;&lt;BR /&gt;  Kthread threads are therefore visible at the OS level, and are displayed in SHOW SYSTEM with the "M" flag. Processes using Pthreads are not externally visible. You can infer them, as Volker has shown, but realise that the presence of PTHREAD$RTL in the image activation list does not necessarily mean it's in active use.</description>
      <pubDate>Thu, 18 Jun 2009 20:51:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/pthread/m-p/4442675#M42473</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2009-06-18T20:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: Pthread</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/pthread/m-p/4442676#M42474</link>
      <description>Please find the attached....&lt;BR /&gt;&lt;BR /&gt;Also,the server is having only 1 CPU...&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Fri, 19 Jun 2009 10:08:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/pthread/m-p/4442676#M42474</guid>
      <dc:creator>Mulder_1</dc:creator>
      <dc:date>2009-06-19T10:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: Pthread</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/pthread/m-p/4442677#M42475</link>
      <description>Yes, this process is running pthreads. As pthreads is a user mode thread manager, you do not need multiple CPUs for multiple threads. The threads will all run (one after the other) on one CPU, scheduled by pthreads.&lt;BR /&gt;&lt;BR /&gt;Is there any problem you want to solve ? Or is this just a question out of pure interest ?&lt;BR /&gt;&lt;BR /&gt;Volker.</description>
      <pubDate>Fri, 19 Jun 2009 10:11:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/pthread/m-p/4442677#M42475</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2009-06-19T10:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: Pthread</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/pthread/m-p/4442678#M42476</link>
      <description>Please ignore the previous attachment...&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Fri, 19 Jun 2009 10:12:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/pthread/m-p/4442678#M42476</guid>
      <dc:creator>Mulder_1</dc:creator>
      <dc:date>2009-06-19T10:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: Pthread</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/pthread/m-p/4442679#M42477</link>
      <description>Ignored ;-)&lt;BR /&gt;&lt;BR /&gt;But both attachments to me look quite similar ?!&lt;BR /&gt;&lt;BR /&gt;Volker.</description>
      <pubDate>Fri, 19 Jun 2009 10:14:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/pthread/m-p/4442679#M42477</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2009-06-19T10:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: Pthread</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/pthread/m-p/4442680#M42478</link>
      <description>No there is a genuine problem with application which is using multi-threaded process...&lt;BR /&gt;&lt;BR /&gt;The response received is very poor but system is functioning properly.&lt;BR /&gt;No problems with the network has been detected.No errors are found.&lt;BR /&gt;&lt;BR /&gt;Thanks for your time...</description>
      <pubDate>Fri, 19 Jun 2009 12:07:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/pthread/m-p/4442680#M42478</guid>
      <dc:creator>Mulder_1</dc:creator>
      <dc:date>2009-06-19T12:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: Pthread</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/pthread/m-p/4442681#M42479</link>
      <description>The DECthreads library can schedule its threads as either user-mode or kernel threads depending upon flags in the image header.&lt;BR /&gt;By default, kernel threads are disabled for a program but can be enabled at link time with the /threads_enable qualifier.  You can also use the threadcp program in sys$update (set command sys$update:threadcp.cld) to examine/modify the flags in an existing executable.&lt;BR /&gt;&lt;BR /&gt;Kernel mode threads are disabled by default because true concurrency tends to expose subtle errors in the threading logic of many pthreads programs.  Also, it's frequently the case that the parallelism acheived doesn't outweigh the added overhead of kernel thread scheduling vesus the user mode scheduler.</description>
      <pubDate>Fri, 19 Jun 2009 12:28:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/pthread/m-p/4442681#M42479</guid>
      <dc:creator>David Jones_21</dc:creator>
      <dc:date>2009-06-19T12:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: Pthread</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/pthread/m-p/4442682#M42480</link>
      <description>You should have a look at the fine manual, in particular&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/doc/73final/6493/6101pro_031.html#vms_appendix" target="_blank"&gt;http://h71000.www7.hp.com/doc/73final/6493/6101pro_031.html#vms_appendix&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Since when did you have the performance problem and why do you think it has something to do with pthreads?</description>
      <pubDate>Fri, 19 Jun 2009 12:57:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/pthread/m-p/4442682#M42480</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2009-06-19T12:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: Pthread</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/pthread/m-p/4442683#M42481</link>
      <description>This application is newly built and has much to do with i/o.&lt;BR /&gt;&lt;BR /&gt;It is basically a mediator  which carries request from end user to the DB server and vice-versa.&lt;BR /&gt;&lt;BR /&gt;The problem is there is a greater delay involve in processing the request.&lt;BR /&gt;&lt;BR /&gt;There aren't any errors found that can point to some other way.&lt;BR /&gt;&lt;BR /&gt;There is only negligible CPU usage involved.&lt;BR /&gt;What it looks like there is something wrong with the application.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Tue, 23 Jun 2009 06:24:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/pthread/m-p/4442683#M42481</guid>
      <dc:creator>Mulder_1</dc:creator>
      <dc:date>2009-06-23T06:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: Pthread</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/pthread/m-p/4442684#M42482</link>
      <description>Maybe it was already checked and I just don't see it: does the application have "upcalls" enabled?&lt;BR /&gt;&lt;BR /&gt;The mentioned threadcp utility can show it, like &lt;BR /&gt;$ set command sys$update:threadcp&lt;BR /&gt;$ threadcp/show SYS$COMMON:[SYSUPD]THREADCP.EXE&lt;BR /&gt;&lt;BR /&gt;SYS$COMMON:[SYSUPD]THREADCP.EXE;1&lt;BR /&gt;%THREADCP-I-MKT, multiple kernel threads are disabled&lt;BR /&gt;%THREADCP-I-UPC, upcalls are disabled&lt;BR /&gt;$&lt;BR /&gt;&lt;BR /&gt;You also can use analyze/image and check the EIHD$V_UPCALLS bit (set is enabled).</description>
      <pubDate>Tue, 23 Jun 2009 07:25:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/pthread/m-p/4442684#M42482</guid>
      <dc:creator>H.Becker</dc:creator>
      <dc:date>2009-06-23T07:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Pthread</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/pthread/m-p/4442685#M42483</link>
      <description>Now it has been enabled ...&lt;BR /&gt;&lt;BR /&gt;(10) EIHD$V_MKTHREADS     1&lt;BR /&gt;                        &lt;BR /&gt;(11) EIHD$V_UPCALLS       1&lt;BR /&gt;&lt;BR /&gt;thanks</description>
      <pubDate>Tue, 23 Jun 2009 08:01:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/pthread/m-p/4442685#M42483</guid>
      <dc:creator>Mulder_1</dc:creator>
      <dc:date>2009-06-23T08:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: Pthread</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/pthread/m-p/4442686#M42484</link>
      <description>The problem is resolved after enabling the upcalls...&lt;BR /&gt;&lt;BR /&gt;Also, enabling MKT has no effect.&lt;BR /&gt;&lt;BR /&gt;The delay no longer exists.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 24 Jun 2009 08:45:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/pthread/m-p/4442686#M42484</guid>
      <dc:creator>Mulder_1</dc:creator>
      <dc:date>2009-06-24T08:45:10Z</dc:date>
    </item>
  </channel>
</rss>

