(int count)
| 29 | } |
| 30 | |
| 31 | public static LockFactory initialize(int count) { |
| 32 | if (instance == null) { |
| 33 | instance = new LockFactory(count); |
| 34 | } |
| 35 | return instance; |
| 36 | } |
| 37 | |
| 38 | public boolean hasCycle(Hashtable<Integer, Boolean> touchedNodes, int[] resourcesInOrder) { |
| 39 | /* check for a cycle */ |