public static void testReentrantReader(ReadWriteLock readWriteLock)
 {
     for (int i = 0; i < 3; i++)
     {
         readWriteLock.ReadLock();
     }
     for (int i = 0; i < 3; i++)
     {
         readWriteLock.ReadUnlock();
     }
 }
 public static void testReader(ReadWriteLock readWriteLock)
 {
     readWriteLock.ReadLock();
     Thread.Sleep(300);
     readWriteLock.ReadUnlock();
 }