Subject:
|
Re: RCX and Java
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Tue, 4 May 1999 20:35:29 GMT
|
Original-From:
|
Gary Hughes <ghughes@tardis[SayNoToSpam].com>
|
Viewed:
|
1119 times
|
| |
| |
Ola Liljedahl <olli@enea.se> wrote:
> Aren't robots real time systems?
> Isn't the RCX meant to be a component in such real time systems?
>
> Java (as implemented by current virtual machines) is NOT suitable
> as a platform for building real time systems. The implementation of
> garbage collection is not deterministic and may take a very long
> time to execute. You Emacs users out there should recognise the problem...
MIT had their annual Lego robot race a month or so back, and they were
ALL running Java. Not on RCXs though; they were using some kind of
StrongARM running Linux as the programmable brick.
You can make Java GC more deterministic by disabling automatic GC. It is
a command line option to the JDK JVM (-noasyncgc). Then you at least get to
control when or if GC takes place. And of course you can write your own
GC methods if you wish.
> We should make the distinction between real time systems and embedded
> systems. Java is fine for embedded systems with no real time requirements.
There are people building real time systems with deterministic response
requirements in Java. There are people building new JVMs specifically for
deterministic real time applications, with very different GC
characteristics.
There is an effort underway, sponsored by NIST (US Gov't National Inst. of
Standards and Testing), to define a set of standard requirements for RT
Java.
> In my line of business I see some Java being used in real time systems.
> But never for real time purposes, only for low priority (as regards to
> real time properties) operation and maintenance.
I see a surprising amount of interest in Java from the real time community,
although they seem to be leaning heavily away from the Sun JVM. I don't
know if that is driven by technical or licensing/cost concerns (or both).
gary
--
Did you check the web site first?: http://www.crynwr.com/lego-robotics
|
|
Message has 1 Reply: | | Re: RCX and Java
|
| (...) Both, at least last year. Sun has recently gone to open source for the JVM but previously their license fees were very expensive. Technically, there are better choices wrt real-time/embedded issues. Fred ---...--- Fred Rose Ph: 612.951.7106 (...) (26 years ago, 4-May-99, to lugnet.robotics)
|
2 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
Active threads in Robotics
|
|
|
|