JavaMemoryModel: Holub's Rules to Live By

From: Tom Cargill (cargill@sni.net)
Date: Thu Jun 29 2000 - 08:29:31 EDT


I'm reading Allen Holub's 'Taming Java Threads'
presentation from the recent JavaOne:

   http://jsp.java.sun.com/javaone/javaone2000/pdfs/TS-975.pdf

On pages 17 and 18 he presents 7 "Rules to Live By."

The spirit is right, but I question some of the details.

The 4th rule (top of p. 18) is too strong, because it
requires that both threads sync on the same lock.

Is there expert concensus on the validity of these rules?
~~
http://www.sni.net/~cargill

-------------------------------
JavaMemoryModel mailing list - http://www.cs.umd.edu/~pugh/java/memoryModel



This archive was generated by hypermail 2b29 : Thu Oct 13 2005 - 07:00:26 EDT