forked from hjl0505/FileSystem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Test2d.java
24 lines (22 loc) · 818 Bytes
/
Test2d.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import java.util.Date;
class Test2d extends Thread {
public void run() {
long startTime = new Date().getTime();
String[] args1 = SysLib.stringToArgs( "TestThread2d a 5000" );
String[] args2 = SysLib.stringToArgs( "TestThread2d b 1000" );
String[] args3 = SysLib.stringToArgs( "TestThread2d c 3000" );
String[] args4 = SysLib.stringToArgs( "TestThread2d d 6000" );
String[] args5 = SysLib.stringToArgs( "TestThread2d e 500" );
SysLib.exec( args1 );
SysLib.exec( args2 );
SysLib.exec( args3 );
SysLib.exec( args4 );
SysLib.exec( args5 );
for (int i = 0; i < 5; i++ )
SysLib.join();
long endTime = new Date().getTime();
long totalTime = endTime - startTime;
SysLib.cout( "Test2d finished; total time = " + totalTime + "\n" );
SysLib.exit();
}
}