00001 class ReaderThread extends java.lang.Thread 00002 { 00003 Reader r; 00004 00005 public ReaderThread(ReadWriteLock rw) 00006 { 00007 this.r = new Reader(rw); 00008 } 00009 00010 public void run () 00011 { 00012 while (true) 00013 { 00014 try { 00015 this.r.read(); 00016 } 00017 catch (java.lang.InterruptedException e) { 00018 } 00019 } 00020 } 00021 }