RTSJ(Java 实时规范)到底是什么?

发布于 2024-08-27 14:29:28 字数 58 浏览 6 评论 0原文

Java 实时规范到底是什么?也就是说,它与“常规”Java SE 或 Java EE 规范有何不同?

What exactly is the Java Real Time Specification? That is, how does it differ from the "regular" Java SE or Java EE specifications?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

筑梦 2024-09-03 14:29:28

实时计算的核心是可预测性,即系统将始终在要求的时间范围内执行的知识。

基本上,这是您无法使用常规 VM(及其停止世界 GC 等)实现的目标,因此需要另一个规范:

Java 实时规范
(RTSJ) 或 JSR 1,指定 Java 如何
系统应该实时运行
背景并经过多次开发
多年来,来自 Java 和 Java 的专家
和实时域。

RTSJ 旨在无缝地
扩展任何 Java 系列——无论是
Java 平台,标准版(Java
东南); Java 平台微型版
(Java ME);或Java平台,
企业版 (Java EE)——以及
要求任何
实现通过了 JSR 1
技术兼容性套件 (TCK) 和
平台的TCK——Java SE,
Java ME 或 Java EE——它所在的位置
基于。

RTSJ 推出了多项新功能
支持实时功能
运营。这些功能包括新
线程类型,新的内存管理
以及其他新推出的型号
框架。 (...)

我强烈推荐阅读:

At its core, real-time computing is about predictability -- the knowledge that the system will always perform within the required time frame.

Basically, this is something you won't be able to achieve with the regular VM (and its stop-the-world GC amongst other things), hence the need for another specification:

The Real-Time Specification for Java
(RTSJ), or JSR 1, specifies how Java
systems should behave in a real-time
context and was developed over several
years by experts from both the Java
and real-time domains.

The RTSJ is designed to seamlessly
extend any Java family -- whether the
Java Platform, Standard Edition (Java
SE); Java Platform, Micro Edition
(Java ME); or Java Platform,
Enterprise Edition (Java EE) -- and
has the requirement that any
implementation pass both the JSR 1
technology compatibility kit (TCK) and
the TCK of the platform -- Java SE,
Java ME, or Java EE -- on which it is
based.

The RTSJ introduces several new
features to support real-time
operations. These features include new
thread types, new memory-management
models, and other newly introduced
frameworks. (...)

I warmly recommend the reading of:

陪我终i 2024-09-03 14:29:28

我假设您正在谈论 RTSJ,Java 实时规范。这是一组支持 Java 实时开发的接口和相关行为规范。

也就是说,它与“常规”Java SE 或 Java EE 规范有何不同。

RTSJ 以允许进行实时开发的方式扩展了 Java 语言和库规范。例如,可以指定不受垃圾回收影响的内存区域,这对于普通 Java 来说或多或少是不可能的。

您可以在此处<阅读完整规范的 PDF 版本/强>。

I assume you're talking about RTSJ, the Real-Time Specification for Java. This is a set of interfaces and related behavioral specifications that enable real-time development in Java.

That is, how does it differ from the "regular" Java SE or Java EE specifications.

RTSJ extends the Java language and library specifications in a way that permits real-time development to happen. For example, it's possible to specify regions of memory that aren't subject to garbage collection, which is more or less impossible with vanilla Java.

You can read a PDF version of the full spec here.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文