// Filename SafeWriter.java // Providing class to read the dangerous attributes. // // Written for JFL book Chapter 8 see text. // Fintan Culwin, v0.1, January 1997 // Modified by X. Meng according to the JFL book import Synch; public class SafeWriter extends Thread { Synch writeThis; public SafeWriter( Synch toWrite ) { writeThis = toWrite; } // End SafeWriter Constructor. public void run() { int index = 0; while ( true ) { writeThis.update( index++); } // End while. } // End run. } // End SafeWriter.