<?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 Using Pthreads on Windows in Intel® Moderncode for Parallel Architectures</title>
    <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Using-Pthreads-on-Windows/m-p/988578#M5951</link>
    <description>Clay,&lt;BR /&gt;I downloaded Red Hat's &lt;A href="http://sources.redhat.com/pthreads-win32"&gt;Open Source POSIX Threads for Win32&lt;/A&gt;and built the DLL on my system. I linked it to a Pthreads program on Windows and it ran correctly. It's a pretty easy way to get Pthreads programs working on Windows. I didn't do any performance experiments but I don't expect a significant performance loss. The Red Hat Pthreads implementation just wraps equivalent Windows threading functions.&lt;BR /&gt;&lt;BR /&gt;I did an experiment to test whether the &lt;A href="http://www.intel.com/software/products/threading/tcwin/"&gt;Intel Thread Checker&lt;/A&gt; could analyze a Pthreads program on Windows. The Pthreads DLL was built with the &lt;B&gt;/Qtcheck&lt;/B&gt; option in the Intel compiler. My test program was also built with the &lt;B&gt;/Qtcheck&lt;/B&gt; option. Data races were deliberately introduced into the program. Thread Checker correctly identified the data races, their locations in the code, and the variables involved.&lt;BR /&gt;&lt;BR /&gt;Henry&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;
Thank you rdwells and Randy!
 
I did a Google search on "pthreads win32" and found the
Red Hat location for this. Unfortunately the site
wouldn't come up when I tried it, but the third link in
the Google list sent me to a Hong Kong mirror site that
was accessible. 
 
It looks to be a simple DLL that you can link in with
your Pthreads source code. The README notes that you need
to choose only one from several variations of the binary
or you can take the source and compile it yourself.
 
If and when someone tries this library, please go ahead
and start a new topic for discussing the use of the DLL
as well as any tricks and traps that users might run into.
 
-- clay
&lt;/PRE&gt;</description>
    <pubDate>Sat, 07 Jun 2003 01:33:44 GMT</pubDate>
    <dc:creator>Henry_G_Intel</dc:creator>
    <dc:date>2003-06-07T01:33:44Z</dc:date>
    <item>
      <title>Using Pthreads on Windows</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Using-Pthreads-on-Windows/m-p/988578#M5951</link>
      <description>Clay,&lt;BR /&gt;I downloaded Red Hat's &lt;A href="http://sources.redhat.com/pthreads-win32"&gt;Open Source POSIX Threads for Win32&lt;/A&gt;and built the DLL on my system. I linked it to a Pthreads program on Windows and it ran correctly. It's a pretty easy way to get Pthreads programs working on Windows. I didn't do any performance experiments but I don't expect a significant performance loss. The Red Hat Pthreads implementation just wraps equivalent Windows threading functions.&lt;BR /&gt;&lt;BR /&gt;I did an experiment to test whether the &lt;A href="http://www.intel.com/software/products/threading/tcwin/"&gt;Intel Thread Checker&lt;/A&gt; could analyze a Pthreads program on Windows. The Pthreads DLL was built with the &lt;B&gt;/Qtcheck&lt;/B&gt; option in the Intel compiler. My test program was also built with the &lt;B&gt;/Qtcheck&lt;/B&gt; option. Data races were deliberately introduced into the program. Thread Checker correctly identified the data races, their locations in the code, and the variables involved.&lt;BR /&gt;&lt;BR /&gt;Henry&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;
Thank you rdwells and Randy!
 
I did a Google search on "pthreads win32" and found the
Red Hat location for this. Unfortunately the site
wouldn't come up when I tried it, but the third link in
the Google list sent me to a Hong Kong mirror site that
was accessible. 
 
It looks to be a simple DLL that you can link in with
your Pthreads source code. The README notes that you need
to choose only one from several variations of the binary
or you can take the source and compile it yourself.
 
If and when someone tries this library, please go ahead
and start a new topic for discussing the use of the DLL
as well as any tricks and traps that users might run into.
 
-- clay
&lt;/PRE&gt;</description>
      <pubDate>Sat, 07 Jun 2003 01:33:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Using-Pthreads-on-Windows/m-p/988578#M5951</guid>
      <dc:creator>Henry_G_Intel</dc:creator>
      <dc:date>2003-06-07T01:33:44Z</dc:date>
    </item>
  </channel>
</rss>

