Java multithread in database query
   Know little about multithread processing in Java. I want to create a program to simulate 100 users to execute database query at the same time, so I want to create 100 threads to execute my database query function and get the total time they used. 
   I tried but failed. Every time the output of my program is in the same order, which I think a correct multithread program will not. So, may I have the main frame code of the part of multithread processing? Thank you in advance.
Java multithread in database query
===

   Know little about multithread processing in Java. I want to create a program to simulate 100 users to execute database query at the same time, so I want to create 100 threads to execute my database query function and get the total time they used. 
   I tried but failed. Every time the output of my program is in the same order, which I think a correct multithread program will not. So, may I have the main frame code of the part of multithread processing? Thank you in advance.