File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change 7
7
* Time: 4:16 PM
8
8
* To change this template go to Preferences | IDE Settings | File and Code Templates
9
9
*/
10
+
10
11
import java .io .BufferedReader ;
11
12
import java .io .IOException ;
12
13
import java .io .InputStreamReader ;
@@ -21,6 +22,7 @@ public static void main(String args[]) throws MalformedURLException {
21
22
final URL myURL = new URL ("http://localhost:8080/ifb.html" );
22
23
ExecutorService executorService = Executors .newFixedThreadPool (20 );
23
24
Long start = System .currentTimeMillis ();
25
+
24
26
for (int i = 0 ; i <= 50 ; i ++) {
25
27
executorService .execute (new Runnable () {
26
28
@@ -53,12 +55,4 @@ public void run() {
53
55
System .out .println ("Difference: " + diff + "ms" );
54
56
executorService .shutdown ();
55
57
}
56
-
57
- private class MyThread extends Thread {
58
-
59
- @ Override
60
- public void run (){
61
-
62
- }
63
- }
64
58
}
You can’t perform that action at this time.
0 commit comments