TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Checkedthreads: bug-free shared memory parallelism

51 pointsby surajabout 12 years ago

3 comments

zeteoabout 12 years ago
&#62;In a fork/join program, you need just two orders: run all loops from 0 to N. run them all backwards, from N to 0.<p>Does this hold for the following code:<p>for (j = 0; j &#60; 3; j++) a = j % 2;<p>In both forward (0, 1, 2) and backward (2, 1, 0) order, the final value of a is 0. But with the j==1 loop running last, a becomes 1 instead.
评论 #5478895 未加载
cascaabout 12 years ago
Great writeup and it looks like an excellent tool. We'll definitely give it a try. Parallelization is really hard to get right and any tools that can help are much appreciated.
评论 #5478768 未加载
octo_tabout 12 years ago
Do you have any proofs of correctness for this at all? You claim to be able to detect almost all data race conditions, but I don't see much evidence for that in the blog post.<p>Is all of the necessary work being offloaded to Valgrind?
评论 #5479229 未加载