| 1 | import org.odmg.Database; | 
|---|
| 2 | import org.odmg.Implementation; | 
|---|
| 3 | import org.odmg.ODMGException; | 
|---|
| 4 | import org.odmg.OQLQuery; | 
|---|
| 5 | import org.odmg.QueryException; | 
|---|
| 6 | import org.odmg.Transaction; | 
|---|
| 7 | import rasj.RasImplementation; | 
|---|
| 8 |  | 
|---|
| 9 | public 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 | } | 
|---|