简体   繁体   English

究竟什么是RTSJ,Java的实时规范?

[英]What exactly is RTSJ, the Real-Time Specification for Java?

What exactly is the Java Real Time Specification? 什么是Java实时规范? That is, how does it differ from the "regular" Java SE or Java EE specifications? 也就是说,它与“常规”Java SE或Java EE规范有何不同?

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: 基本上,这是您无法通过常规VM(以及其他世界的GC)实现的,因此需要另一个规范:

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. Java实时规范(RTSJ)或JSR 1规定了Java系统在实时环境中的行为方式,并且是Java和实时域专家多年来开发的。

The RTSJ is designed to seamlessly extend any Java family -- whether the Java Platform, Standard Edition (Java SE); RTSJ旨在无缝扩展任何Java系列 - 无论是Java平台,标准版(Java SE); Java Platform, Micro Edition (Java ME); 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. 或Java平台,企业版(Java EE) - 并要求任何实现都通过JSR 1技术兼容性工具包(TCK)和平台的TCK - Java SE,Java ME或Java EE - 它是基于它。

The RTSJ introduces several new features to support real-time operations. RTSJ引入了几项新功能来支持实时操作。 These features include new thread types, new memory-management models, and other newly introduced frameworks. 这些功能包括新线程类型,新内存管理模型和其他新引入的框架。 (...) (......)

I warmly recommend the reading of: 我热烈推荐阅读:

I assume you're talking about RTSJ, the Real-Time Specification for Java . 我假设你在谈论RTSJ, 即Java实时规范 This is a set of interfaces and related behavioral specifications that enable real-time development in Java. 这是一组接口和相关的行为规范,支持Java中的实时开发。

That is, how does it differ from the "regular" Java SE or Java EE specifications. 也就是说,它与“常规”Java SE或Java EE规范有何不同。

RTSJ extends the Java language and library specifications in a way that permits real-time development to happen. RTSJ以允许实时开发的方式扩展Java语言和库规范。 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. 例如,可以指定不受垃圾收集影响的内存区域,这对于vanilla Java来说或多或少是不可能的。

You can read a PDF version of the full spec here . 您可以在此处阅读完整规范的PDF版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM