Introduction to Real-Time Java

Source: Internet
Author: User
Tags lock queue
By michaelzyy and michaelzyy
Original article: http://www.matrix.org.cn/resource/article/2006-11-28/JAVA+Real+Time_72f1a994-7e38-11db-babc-9753a314dd4b.html

What does real-time mean?

Greg bollella, an outstanding engineer at Sun and one of the authors of Real-Time Java specifications, said, real-time means "the ability to reliably predict and control the time behavior of program logic." Real-time does not mean speed, as many developers think. It means that when we need to respond to real-world events, its behavior is predictable and reliable. Real-time Computers always respond within a limited period of time. Depending on the set period, a large number of systems can be called real-time.

Many programs cannot allow even a one-second delay; they include financial software, aircraft control software, nuclear power plant control software, and so on. Therefore, these are not all very high speed requirements, although real-time platform designers will try to make the program faster. Obviously, the standard Java platform does not meet the requirements of these real-time systems, which is also written into the j2se and J2EE license protocols, these protocols clearly declare that Java cannot be used in nuclear power plant facility software and defense systems.

Real-Time Java

Developing real-time applications requires a set of PI and semantics that allows developers to correctly control program running time and program behavior in reality. Therefore, the real-time Java version must provide some JVM enhancements and a set of Apis suitable for real-time programs. It is not surprising that the biggest obstacle to adding real-time features to Java lies in its garbage collector. Sun's recently released Java real-time version rts1.0 contains a revolutionary core real-time Garbage Collector. Although its first implementation does not contain such a garbage collector (will be added in the next release version ). Java RTS raises other issues to ensure Thread Scheduling certainty, overhead synchronization, lock queue management, class initialization, and minimal interrupt response latency. Java RTS only applies to suitable operating systems, which means that only real-time operating systems such as QNX are suitable for implementing such a JVM. *
......
[Read the full text]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.