-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTest2c.java
More file actions
24 lines (22 loc) · 831 Bytes
/
Test2c.java
File metadata and controls
24 lines (22 loc) · 831 Bytes
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 Test2c extends Thread {
public void run() {
long startTime = new Date().getTime();
String[] args1 = SysLib.stringToArgs( "TestThread2c a 5000 0" );
String[] args2 = SysLib.stringToArgs( "TestThread2c b 1000 0" );
String[] args3 = SysLib.stringToArgs( "TestThread2c c 3000 0" );
String[] args4 = SysLib.stringToArgs( "TestThread2c d 6000 0" );
String[] args5 = SysLib.stringToArgs( "TestThread2c e 500 0" );
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( "Test2c finished; total time = " + totalTime + "\n" );
SysLib.exit();
}
}