/* This is an example file to show * how to use timeout for each lock request */ class Test2{ public static void main(String args[]){ LockRequest lr = new LockRequest(); lr.lwait(20000); //lr.lnotify(); System.out.println("notified = "+lr.notified); } }