use all CPUs
This commit is contained in:
parent
05fe916948
commit
b2a4b73c59
@ -136,7 +136,7 @@ public class CalculateAverage_abeobk {
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws InterruptedException, IOException {
|
||||
int cpu_cnt = Runtime.getRuntime().availableProcessors() / 2;
|
||||
int cpu_cnt = Runtime.getRuntime().availableProcessors();
|
||||
try (var file = FileChannel.open(Path.of(FILE), StandardOpenOption.READ)) {
|
||||
long start_addr = file.map(MapMode.READ_ONLY, 0, file.size(), Arena.global()).address();
|
||||
long file_size = file.size();
|
||||
|
Loading…
Reference in New Issue
Block a user