Ticket #133: concurrentRasj.java

File concurrentRasj.java, 506 bytes (added by Ernesto Rodriguez, 13 years ago)
Line 
1import org.odmg.Database;
2import org.odmg.Implementation;
3import org.odmg.ODMGException;
4import org.odmg.OQLQuery;
5import org.odmg.QueryException;
6import org.odmg.Transaction;
7import rasj.RasImplementation;
8
9public class concurrentRasj{
10
11 public static void main(String[] args){
12
13 try{
14 int threads=Integer.parseInt(args[0]);
15
16 for(int i=0;i<threads;i++){
17
18 rasjQuery q=new rasjQuery();
19 Thread t=new Thread(q);
20 t.start();
21 }
22
23 }catch(Exception e){
24 e.printStackTrace();
25 }
26 }
27}