JavaMemoryModel: Holub's Rules to Live By

From: Tom Cargill (
Date: Thu Jun 29 2000 - 08:29:31 EDT

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

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?

JavaMemoryModel mailing list -

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