forked from btraceio/btrace
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBTRACE256.java
More file actions
30 lines (24 loc) · 721 Bytes
/
BTRACE256.java
File metadata and controls
30 lines (24 loc) · 721 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
25
26
27
28
29
30
package resources.issues;
public class BTRACE256 {
public java.util.Random r = new java.util.Random(System.currentTimeMillis());
public static void main(String[] args) throws Exception {
Thread t = new Thread(new Runnable() {
@Override
public void run() {
BTRACE256 test = new BTRACE256();
try {
while (true) {
test.doStuff();
}
} catch (Exception e) {
}
}
});
t.start();
t.join();
}
public void doStuff() throws Exception {
Thread.sleep(r.nextInt(2000));
System.out.print(".");
}
}