db4o Developer Community

db4o open source object database, native to Java and .NET
Welcome to db4o Developer Community Sign in | Join
in Search
More Search Options

Carl Rosenberger's web log

Software Transactional Memory

The following is likely to be the future of concurrent programming:

http://channel9.msdn.com/showpost.aspx?postid=231495

Simon Peyton-Jones and Tim Harris explain how locks and monitors can be replaced by a beautiful simple concept that scales very nicely for multiple processors:

atomic {

  // do something

}

After watching the video I fully agree: "Locks are fundamentally flawed. They are just like building skyscrapers out of bananas."

Thanks for sending the link, Rodrigo!

Published Thursday, September 07, 2006 11:32 PM by Carl Rosenberger
Filed under: , , ,


Comments

 

cl-r said:

It's available from Java 1.5
September 8, 2006 2:36 PM
 

Carl Rosenberger said:

No, the functionality is not available in Java 1.5. You can download an implementation in Haskell and in C# from the link I provided. From watching the video my best guess is that the C# implementation was done by adding interceptors to property accessors, using bytecode engineering. You have to access all fields through properties.

September 9, 2006 6:02 PM
 

Carl Rosenberger's web log said:

Catherine Crawford asks: "Where's The Software To Catch Up To Multicore Computing?" . Indeed, parallel

February 11, 2007 7:59 PM
Anonymous comments are disabled