🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #18832

Re: Is Java ready for RealTime Application?

#18832
From: Clint Brewer
Date: Tue, 21 Apr 1998 00:00
46 lines
2701 bytes
Potsie wrote:
> 
> Just few questions:
>1) Is Java ready for RealTime Application?
>2) Is C/C++ a better solution?
>3) Does Java support DirectX5?
>4) Is it possible to read from a parallel port under Win95?
>5) Is it possible to call Win32 API?
>6) Is it possible to set the priority of an Application in the way that
> win32 API SetPriorityClass() does?
> 
> Thank you
> 
> Potsie

Hello Potsie, 

 I have numbered your questions for easier response :)
1: Well, it all depends on what your are doing.  Java is still slower
than languages that run natively, although the difference is getting
smaller, and if the machine that is running java is fast enough, then
you probably won't even notice the difference.  If your doing something
like real time threed display of human movement, sure you could
deffinitely do this in java as long as you had a decent machine to run
it on. Say a P266 with 64 megs and a 3d accelerator(wish I had one)
2: Probably, c++ would be my choice if I were doing something that
depended on "split second timing" ( programming a linear accelerator to
take a photo of an electron just as it hits an electric field at near
the speed of light :), or any other such things(or if human life would
depend on the timing, I would go with c++).
3.) The Java3d api will support DirectX and OpenGL, as to what version
I'm not sure. It will support existing hardware acceleration as well!
4.)  There is no current 100% java way of doing this, although it should
be added in the future. I've heard things like jdk2.0 will have a class
for this. In the mean time there are some ready made solutions for this
check out http://privat.swol.de/MarkusBauer/win32p.htm for starters
5.) yes using java native method interface
6.) I don't know.... maybe you could do something in your native code
that set the java virtual machine to top priority, and call that on the
start up of your class , that way your application would then run with
top priority. I don't know if that would work or not, but it's a though.

I hope some of the above answers your questions,
Clint Brewer
Borland
Technical Details
Message-ID: <353D4BDB.14A9@borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <35374623.37D4E040@zooming.it>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,b44467a5682d242f
X-Google-Attributes: gidf74b3,public
From: Clint Brewer <supportinfo@borland.com>
Subject: Re: Is Java ready for RealTime Application?
Date: 1998/04/21
Message-ID: <353D4BDB.14A9@borland.com>
X-Deja-AN: 346497403
Content-Transfer-Encoding: 7bit
References: <35374623.37D4E040@zooming.it>
Mime-Version: 1.0
To: Potsie <l.derrico@zooming.it>
Content-Type: text/plain; charset=us-ascii
Organization: Borland International
Newsgroups: borland.public.jbuilder.java.language