[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/111587] New: Running a native process may introduce up to
From: |
guillerodriguez.dev at gmail dot com |
Subject: |
[Bug classpath/111587] New: Running a native process may introduce up to 1 second additional delay |
Date: |
Mon, 25 Sep 2023 09:32:57 +0000 |
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111587
Bug ID: 111587
Summary: Running a native process may introduce up to 1 second
additional delay
Product: classpath
Version: 0.99
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: classpath
Assignee: unassigned at gcc dot gnu.org
Reporter: guillerodriguez.dev at gmail dot com
Target Milestone: ---
Running a native process and waiting for it to terminate may take up to 1
second longer than necessary.
Test code:
long t0 = System.currentTimeMillis();
Process process = Runtime.getRuntime().exec(args);
int res = process.waitFor();
long t1 = System.currentTimeMillis();
System.out.println("Result: " + res + ", " + ((t1 - t0) / 1000f) + " s");
Sample output:
$ jamvm Run sleep 0.1
Result: 0, 1.002 s
$ jamvm Run sleep 0.9
Result: 0, 1.002 s
$ jamvm Run sleep 1.1
Result: 0, 2.002 s
$ jamvm Run sleep 1.9
Result: 0, 2.002 s
$ jamvm Run sleep 2.1
Result: 0, 3.002 s
- [Bug classpath/111587] New: Running a native process may introduce up to 1 second additional delay,
guillerodriguez.dev at gmail dot com <=