<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<rss version="2.0">
  <channel>
  <title>comp.programming.threads Google Group</title>
  <link>http://groups.google.com/group/comp.programming.threads</link>
  <description>All issues about multithreaded programming.</description>
  <language>en</language>
  <item>
  <title>Re: properly shutdown threads</title>
  <link>http://groups.google.com/group/comp.programming.threads/browse_thread/thread/387a43359cb3b46e/1ec73a76ab8ac00a?show_docid=1ec73a76ab8ac00a</link>
  <description>
  In article &amp;lt;6edji5F6gra...@mid.uni-berlin .de&amp;gt;, &lt;br&gt; [ removed good advice to look at other art ] &lt;br&gt; Actually, any implementation these days that doesn&#39;t correctly unwind &lt;br&gt; the stack on cancellation could easily be called &amp;quot;hopelessly broken&amp;quot;. &lt;br&gt; Note that pthread cleanup handlers require an unwind-like activity, &lt;br&gt; though some implementations did odd things like separate linked lists.
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.programming.threads/browse_thread/thread/387a43359cb3b46e/1ec73a76ab8ac00a?show_docid=1ec73a76ab8ac00a</guid>
  <author>
  steve.removet...@watt.com
  (Steve Watt)
  </author>
  <pubDate>Sat, 19 Jul 2008 17:49:28 UT
</pubDate>
  </item>
  <item>
  <title>Re: false sharing confusion!!</title>
  <link>http://groups.google.com/group/comp.programming.threads/browse_thread/thread/7030f8ac1610a709/1ee634e9788dc359?show_docid=1ee634e9788dc359</link>
  <description>
  Agreed. &lt;br&gt; Indeed! If the objects are &amp;quot;read-mostly&amp;quot;, then it could be beneficial &lt;br&gt; to pack several of them in a single L2 cache-line which would aid certain &lt;br&gt; cache-blocking techniques and allow an initial cache-line load to bring &lt;br&gt; in several objects at once; that&#39;s good. On the other hand, if the objects &lt;br&gt; are &amp;quot;write-mostly&amp;quot;, then keeping a single object per-cache-line tends to
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.programming.threads/browse_thread/thread/7030f8ac1610a709/1ee634e9788dc359?show_docid=1ee634e9788dc359</guid>
  <author>
  x...@xxx.xxx
  (Chris Thomasson)
  </author>
  <pubDate>Sat, 19 Jul 2008 13:46:46 UT
</pubDate>
  </item>
  <item>
  <title>Re: false sharing confusion!!</title>
  <link>http://groups.google.com/group/comp.programming.threads/browse_thread/thread/7030f8ac1610a709/0a8cc638b53bd142?show_docid=0a8cc638b53bd142</link>
  <description>
  That&#39;s a &amp;quot;bug&amp;quot; in that specific implementation. I put &amp;quot;bug&amp;quot; in quotes &lt;br&gt; because it&#39;s a trade-off, but one that I think was made very badly. &lt;br&gt; Keeping critical sections small saves memory when you have a lot of &lt;br&gt; them and can improve performance if multiple &amp;quot;nearby&amp;quot; critical &lt;br&gt; sections are used by the same thread many times (less memory
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.programming.threads/browse_thread/thread/7030f8ac1610a709/0a8cc638b53bd142?show_docid=0a8cc638b53bd142</guid>
  <author>
  dav...@webmaster.com
  (David Schwartz)
  </author>
  <pubDate>Sat, 19 Jul 2008 10:24:48 UT
</pubDate>
  </item>
  <item>
  <title>Re: Condvar Algorithm 6b by Terekhov &amp; Thomas</title>
  <link>http://groups.google.com/group/comp.programming.threads/browse_thread/thread/651a6c5178d6ee87/c695d9eb061f749c?show_docid=c695d9eb061f749c</link>
  <description>
  [...] &lt;br&gt; There is an updated version; algorithm 8a: &lt;br&gt; &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://ftp.twaren.net/Unix/Sourceware/pthreads-win32/sources/pthreads-w32-2-8-0-release/pthread_cond_wait.c&quot;&gt;[link]&lt;/a&gt;
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.programming.threads/browse_thread/thread/651a6c5178d6ee87/c695d9eb061f749c?show_docid=c695d9eb061f749c</guid>
  <author>
  x...@xxx.xxx
  (Chris Thomasson)
  </author>
  <pubDate>Sat, 19 Jul 2008 09:54:33 UT
</pubDate>
  </item>
  <item>
  <title>Re: pthread_mutex_lock / unlock affecting compiler optimization and/or caching ??</title>
  <link>http://groups.google.com/group/comp.programming.threads/browse_thread/thread/688bbab3d72fd3dc/91296dc572ff6006?show_docid=91296dc572ff6006</link>
  <description>
  It certainly could be! If the `pthread_mutex_t&#39; data-structures are not &lt;br&gt; properly &lt;br&gt; padded and aligned, well...
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.programming.threads/browse_thread/thread/688bbab3d72fd3dc/91296dc572ff6006?show_docid=91296dc572ff6006</guid>
  <author>
  x...@xxx.xxx
  (Chris Thomasson)
  </author>
  <pubDate>Sat, 19 Jul 2008 09:47:20 UT
</pubDate>
  </item>
  <item>
  <title>Re: false sharing confusion!!</title>
  <link>http://groups.google.com/group/comp.programming.threads/browse_thread/thread/7030f8ac1610a709/bc91e974ba1b3ed9?show_docid=bc91e974ba1b3ed9</link>
  <description>
  Sadly, this does not avoid the possibility of false-sharing wrt an &lt;br&gt; applications &lt;br&gt; shared-data. Also, keep this in mind: &lt;br&gt; &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://groups.google.com/group/comp.programming.threads/msg/88bd832858072802&quot;&gt;[link]&lt;/a&gt; &lt;br&gt; &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://groups.google.com/group/comp.programming.threads/msg/9701b98be6ed6e7f&quot;&gt;[link]&lt;/a&gt; &lt;br&gt; There is false-sharing among CRITICAL_SECTIONS and the data they protect,
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.programming.threads/browse_thread/thread/7030f8ac1610a709/bc91e974ba1b3ed9?show_docid=bc91e974ba1b3ed9</guid>
  <author>
  x...@xxx.xxx
  (Chris Thomasson)
  </author>
  <pubDate>Sat, 19 Jul 2008 09:44:38 UT
</pubDate>
  </item>
  <item>
  <title>Re: false sharing confusion!!</title>
  <link>http://groups.google.com/group/comp.programming.threads/browse_thread/thread/7030f8ac1610a709/f2b1cac59c8e98a3?show_docid=f2b1cac59c8e98a3</link>
  <description>
  Word-tearing aside for a moment, I have not seen any bugs caused by &lt;br&gt; false-sharing, but it does simply destroy performance by constantly &lt;br&gt; invalidating cached data. &lt;br&gt; &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://groups.google.com/group/comp.programming.threads/msg/8036dc8a380718ad&quot;&gt;[link]&lt;/a&gt; &lt;br&gt; If you want to avoid false-sharing you really need to find out the L2
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.programming.threads/browse_thread/thread/7030f8ac1610a709/f2b1cac59c8e98a3?show_docid=f2b1cac59c8e98a3</guid>
  <author>
  x...@xxx.xxx
  (Chris Thomasson)
  </author>
  <pubDate>Sat, 19 Jul 2008 09:40:16 UT
</pubDate>
  </item>
  <item>
  <title>hotsexy pictures</title>
  <link>http://groups.google.com/group/comp.programming.threads/browse_thread/thread/710954bd6aa5793a/a52dfef4baa9afff?show_docid=a52dfef4baa9afff</link>
  <description>
  hotsexy pictures &lt;br&gt; spicy sexy pictures &lt;br&gt; animalsex pictures &lt;br&gt; ****************************** &lt;br&gt; &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://mprabha90.blogspots.com&quot;&gt;[link]&lt;/a&gt; &lt;br&gt; ****************************** *
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.programming.threads/browse_thread/thread/710954bd6aa5793a/a52dfef4baa9afff?show_docid=a52dfef4baa9afff</guid>
  <author>
  sexyjeni...@gmail.com
  (sexy)
  </author>
  <pubDate>Sat, 19 Jul 2008 08:36:23 UT
</pubDate>
  </item>
  <item>
  <title>Re: false sharing confusion!!</title>
  <link>http://groups.google.com/group/comp.programming.threads/browse_thread/thread/7030f8ac1610a709/f898f9034132fd70?show_docid=f898f9034132fd70</link>
  <description>
  You&#39;re trying to solve a problem you don&#39;t have. &lt;br&gt; Generally, you can avoid false sharing with three simple rules: &lt;br&gt; 1) Don&#39;t try to write your own low-level primitives. Use ones that &lt;br&gt; have been developed and optimized by experts for your platform. &lt;br&gt; 2) Don&#39;t share sub-objects. If you need to share something between
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.programming.threads/browse_thread/thread/7030f8ac1610a709/f898f9034132fd70?show_docid=f898f9034132fd70</guid>
  <author>
  dav...@webmaster.com
  (David Schwartz)
  </author>
  <pubDate>Sat, 19 Jul 2008 08:00:14 UT
</pubDate>
  </item>
  <item>
  <title>Re: properly shutdown threads</title>
  <link>http://groups.google.com/group/comp.programming.threads/browse_thread/thread/387a43359cb3b46e/7bdb3f51049567f3?show_docid=7bdb3f51049567f3</link>
  <description>
  Does a file get destroyed when the file-class instance is destroyed? &lt;br&gt; Seriously, both a file class and a thread class ARE not the according thing &lt;br&gt; but they represent a HANDLE TO the thing. That means that you can&#39;t &lt;br&gt; hardcode the way to shut down a thread from the baseclass. The way to do &lt;br&gt; that strongly depends on the work the actual thread is doing, sometimes a
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.programming.threads/browse_thread/thread/387a43359cb3b46e/7bdb3f51049567f3?show_docid=7bdb3f51049567f3</guid>
  <author>
  dooms...@knuut.de
  (Ulrich Eckhardt)
  </author>
  <pubDate>Sat, 19 Jul 2008 07:31:14 UT
</pubDate>
  </item>
  <item>
  <title>Re: pthread_cond_signal - race condition</title>
  <link>http://groups.google.com/group/comp.programming.threads/browse_thread/thread/af70b0274a6d0d9f/a2034cfad0c7c2c0?show_docid=a2034cfad0c7c2c0</link>
  <description>
  If the thread goes to run another task, *that* task is not done. The &lt;br&gt; task it finished is still done. &lt;br&gt; Or you can set a timer for each task. It depends on how your code is &lt;br&gt; structured. Ideally, you would already have some kind of sensible &lt;br&gt; timer infrastructure. But if not, you can fake it with a scan. &lt;br&gt; Okay. The list of tasks is global.
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.programming.threads/browse_thread/thread/af70b0274a6d0d9f/a2034cfad0c7c2c0?show_docid=a2034cfad0c7c2c0</guid>
  <author>
  dav...@webmaster.com
  (David Schwartz)
  </author>
  <pubDate>Fri, 18 Jul 2008 23:35:14 UT
</pubDate>
  </item>
  <item>
  <title>false sharing confusion!!</title>
  <link>http://groups.google.com/group/comp.programming.threads/browse_thread/thread/7030f8ac1610a709/12ddfd68bcd8f961?show_docid=12ddfd68bcd8f961</link>
  <description>
  I know very badly the problem of false sharing. &lt;br&gt; Questions: &lt;br&gt; (1) There is a false sharing of 2 processors with 2 cache which can &lt;br&gt; lead ONLY to inefficiency BUT NOT to bugs (unwanted rush conditions on &lt;br&gt; not really shared adjacent data)? &lt;br&gt; (2) There is a false sharing of core-2 Intels with two cores but one
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.programming.threads/browse_thread/thread/7030f8ac1610a709/12ddfd68bcd8f961?show_docid=12ddfd68bcd8f961</guid>
  <author>
  mynickmyn...@yahoo.com
  (mynickmynick)
  </author>
  <pubDate>Fri, 18 Jul 2008 17:35:21 UT
</pubDate>
  </item>
  <item>
  <title>Re: pthread_cond_signal - race condition</title>
  <link>http://groups.google.com/group/comp.programming.threads/browse_thread/thread/af70b0274a6d0d9f/74856514d22e62cc?show_docid=74856514d22e62cc</link>
  <description>
  You mean the Manager thread, rather than Manager module? &lt;br&gt; Once a worker thread is done with its task and wants to tell that to the &lt;br&gt; manager thread, even if just by calling pthread_exit(), it is no more &lt;br&gt; likely than the manager thread to do any more I/O. Unless your or the &lt;br&gt; task&#39;s code has a bug: &lt;br&gt; - if the task has overwritten its caller&#39;s stack or data structures.
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.programming.threads/browse_thread/thread/af70b0274a6d0d9f/74856514d22e62cc?show_docid=74856514d22e62cc</guid>
  <author>
  h.b.furus...@usit.uio.no
  (Hallvard B Furuseth)
  </author>
  <pubDate>Fri, 18 Jul 2008 15:31:35 UT
</pubDate>
  </item>
  <item>
  <title>cheap AP watch PayPal</title>
  <link>http://groups.google.com/group/comp.programming.threads/browse_thread/thread/14ed726af2662318/463a0d20fffae4b1?show_docid=463a0d20fffae4b1</link>
  <description>
  cheap AP watch PayPal &lt;br&gt; Dear friend &lt;br&gt; Welcome to shopping on &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://www.cheapest-paypal.cn&quot;&gt;[link]&lt;/a&gt; &lt;br&gt; Our company launched a new activity which will largely save your time. &lt;br&gt; If you pay us more money , we &lt;br&gt; will give you the equal web money which you can use in next order, so &lt;br&gt; you need not go to the bank to &lt;br&gt; remit the money every time. Also, we can send your parcel at the first
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.programming.threads/browse_thread/thread/14ed726af2662318/463a0d20fffae4b1?show_docid=463a0d20fffae4b1</guid>
  <author>
  yuwenwu...@gmail.com
  </author>
  <pubDate>Fri, 18 Jul 2008 14:43:50 UT
</pubDate>
  </item>
  <item>
  <title>pthread_join(any) (Re: pthread_cond_signal - race condition)</title>
  <link>http://groups.google.com/group/comp.programming.threads/browse_thread/thread/af70b0274a6d0d9f/2495a2ec0f4d1c3e?show_docid=2495a2ec0f4d1c3e</link>
  <description>
  In article &amp;lt;hbf.20080717f...@bombur.uio.n o&amp;gt; &lt;br&gt; I&#39;ve just recently been dipping my toes into pthreads, and I&#39;ve &lt;br&gt; been wondering about that. &lt;br&gt; Since pthreads are pretty well thought out, I assume that there are &lt;br&gt; good reasons for not having that function, but the reasons why it &lt;br&gt; would be a Bad Thing don&#39;t seem obvious to me.
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.programming.threads/browse_thread/thread/af70b0274a6d0d9f/2495a2ec0f4d1c3e?show_docid=2495a2ec0f4d1c3e</guid>
  <author>
  d...@furrfu.invalid
  (Drew Lawson)
  </author>
  <pubDate>Fri, 18 Jul 2008 14:01:40 UT
</pubDate>
  </item>
  </channel>
</rss>
