question: public void test_multipleResourceLocking_resources10_locktries10 ( ) throws Exception { final Properties properties = new Properties ( ) ; properties . setProperty ( TestOptions . NTHREADS , "20" ) ; properties . setProperty ( TestOptions . NTASKS , "1000" ) ; properties . setProperty ( TestOptions . NRESOURCES , "100" ) ; properties . setProperty ( TestOptions . MIN_LOCKS , "10" ) ; properties . setProperty ( TestOptions . MAX_LOCKS , "10" ) ; properties . setProperty ( TestOptions . MAX_LOCK_TRIES , "10" ) ; properties . setProperty ( TestOptions . PREDECLARE_LOCKS , "false" ) ; properties . setProperty ( TestOptions . SORT_LOCK_REQUESTS , "false" ) ; properties . setProperty ( TestOptions . TIMEOUT , Long . toString ( 3 * 60 ) ) ; doComparisonTest ( properties ) ; }
target:  Test where each operation locks one or more resources. <p> Note: This condition provides the basis for deadlocks. In fact, since we have 10 resource locks for each operation and only 100 operations the chances of a deadlock on any given operation are extremely high. However, since we are predeclaring our locks and the lock requests are being sorted NO deadlocks should result.