Subj : Re: Java vs. C++ To : comp.programming.threads From : David Holmes Date : Mon Jun 06 2005 04:31 pm "dayton" wrote in message news:ONAme.22831$J12.18249@newssvr14.news.prodigy.com... > Not nearly enough do we see discussion of non-blocking algorithms such as > those for a double-ended queue. At least in C++ we can access and write > code to implement such algorithms, even though we do have to resort to > assembly language for the atomic CAS instructions. In Java, if you want > to do such things you have to call a C or C++ routine that's been > written with a Java interface to do the same work. The Java 5.0 release supports the writing of lock-free/wait-free/non-blocking algorithms through the classes in the java.util.concurrent.atomic package. David Holmes .