equal
deleted
inserted
replaced
54 |
54 |
55 public static void main(String[] args) throws Exception { |
55 public static void main(String[] args) throws Exception { |
56 int maxThreads = 100; |
56 int maxThreads = 100; |
57 if (args.length > 0) |
57 if (args.length > 0) |
58 maxThreads = Integer.parseInt(args[0]); |
58 maxThreads = Integer.parseInt(args[0]); |
59 |
|
60 |
59 |
61 print = true; |
60 print = true; |
62 |
61 |
63 for (int i = 1; i <= maxThreads; i += (i+1) >>> 1) { |
62 for (int i = 1; i <= maxThreads; i += (i+1) >>> 1) { |
64 System.out.print("Threads: " + i); |
63 System.out.print("Threads: " + i); |
138 ex.printStackTrace(); |
137 ex.printStackTrace(); |
139 return; |
138 return; |
140 } |
139 } |
141 } |
140 } |
142 } |
141 } |
143 |
|
144 |
|
145 } |
142 } |