/* * COM1317 Project * Project.java * Copyright (C) Jing Shan 2003 */ class Project{ public static void main(String args[]){ /*lockMnger is the lock manager of this program */ LockManager lockMnger = new LockManager(); /* t_number is the number of transactions */ int t_number = -1; if (args.length ==0){ System.out.println("Please input the number of transactions"); return; } else t_number = (new Integer(args[0])).intValue(); System.out.println("--------------"); System.out.println("creating "+t_number+" transactions.. "); /* transactions is an array of Transaction */ Transaction transactions[] = new Transaction[t_number]; for (int i=0;i