Re: Maximum Java performance on a Windows 2K platform with JDK 1.4

From: Grant Wagner (gwagner_at_agricoreunited.com)
Date: 11/30/04


Date: Tue, 30 Nov 2004 16:08:06 GMT

Michael wrote:

> Hi,
>
> I was wondering if anyone knew what is the best performance (in ms) I
> can get from a
> Java program (assuming it has all the CPU time it can use)

I'm not sure what this means. Even the simplest Java program will have
significant startup costs, resulting in an execution time from "java
YourProgram" to exit of several thousand milliseconds.

> From my experience, I am guessing it's threahold is about 10ms.

If you're talking about the accuracy of System.currentTimeMillis(), that's
platform dependant. In the case of Windows:

<url: http://mindprod.com/jgloss/time.html />

> I have an application which needs to have near real-time performance for
> one or more components in the architecture.

Java (where the garbage collector can kick in any time) is the wrong
technology to use if you need real-time performance. Although there is a
Real Time Specification for Java <url: https://rtsj.dev.java.net />, I don't
know if there's any production implementation of the spec.

--
Grant Wagner <gwagner@agricoreunited.com>


Relevant Pages

  • Re: Maximum Java performance on a Windows 2K platform with JDK 1.4
    ... Michael wrote: ... >:Java program ... Steve W. Jackson ...
    (comp.lang.java.help)
  • Re: stdout , stderr
    ... In article, michael wrote: ... > I am willing to write a C or Java program to retrieve the stdout and stderr ...
    (comp.unix.shell)
  • Re: Java with EXE and Virtual Machine
    ... > I would like to know if it is possible to compile a java program, ... not aware of free products to do this on Windows. ... the user to agree to Sun's license terms and conditions first.). ...
    (comp.lang.java.programmer)
  • Re: Java with EXE and Virtual Machine
    ... >> I would like to know if it is possible to compile a java program, ... > not aware of free products to do this on Windows. ... It should be possible to run GCJ on Windows under CygWin. ...
    (comp.lang.java.programmer)
  • Re: Does Suns Windows JVM catch Win32 Structured Exceptions?
    ... Barney wrote: ... > called somewhere in the dll, or a dll underneath it. ... You may be able to get more information by running your Java program under the ... Windows exception, and you may be able to work something out from the stack ...
    (comp.lang.java.programmer)