In an earlier post I mentioned that one goal of the new introductory curriculum at Carnegie Mellon is to teach parallelism as the general case of computing, rather than an esoteric, specialized subject for advanced students. Many people are incredulous when I tell them this, because it immediately conjures in their mind the myriad complexities…
I recently diagnosed the root cause of a concurrency bug, CR6822370,
and thought it sufficiently interesting to share the details. (CR 6822370 actually represents a
cluster of bugs that are now thought to be related by a common underlying issue).
Briefly, we have a lost wakeup bug in the native C++ Parker::park() platform-specific
infrastructure code that implements java.util.concurrent.LockSupport.park().
The lost wakeup arises from a race that itself arises because of architectural
reordering that in turn occurs because of missing memory barrier instructions.
The lost wakeup may manifest as various 'hangs' or instances of progress failure.
Think writing a compiler is difficult? It is—unless you use Parrot, a complete compiler construction kit. With Parrot, crafting a new programming language is as easy as authoring a new website.
Program performance is always a concern, even in this era of high-performance hardware. This article, the first in a two-part series, guides you around the many pitfalls associated with benchmarking Java code. Part 2 covers the statistics of benchmarking and offers a framework for performing Java benchmarking. Because almost all new languages are virtual machine-based, the general principles the article describes have broad significance for the programming community at large.
D. Röthlisberger, M. Denker, and É. Tanter. Computer Languages, Systems & Structures, 34 (2–3):
46 - 65(2008)Best Papers 2006 International Smalltalk Conference.
X. Yang, S. Blackburn, D. Frampton, and A. Hosking. Proceedings of the 2012 international symposium on Memory Management, page 37--48. New York, NY, USA, ACM, (2012)
Y. Lin, S. Blackburn, and D. Frampton. Proceedings of the 8th ACM SIGPLAN/SIGOPS conference on Virtual Execution Environments, page 181--190. New York, NY, USA, ACM, (2012)
R. Shahriyar, S. Blackburn, and D. Frampton. Proceedings of the 2012 international symposium on Memory Management, page 73--84. New York, NY, USA, ACM, (2012)
C. Scholliers, L. Hoste, B. Signer, and W. De Meuter. Proceedings of the Fifth International Conference on Tangible, Embedded, and Embodied Interaction, page 49--56. New York, NY, USA, ACM, (2011)
T. Harris, S. Marlow, S. Peyton-Jones, and M. Herlihy. Proceedings of the tenth ACM SIGPLAN symposium on Principles and practice of parallel programming, page 48--60. New York, NY, USA, ACM, (2005)
W. Thies, M. Karczmarek, and S. Amarasinghe. Proceedings of the 11th International Conference on Compiler Construction, page 179--196. London, UK, UK, Springer-Verlag, (2002)