• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Please an example of Real Time Java Programming

 
Ranch Hand
Posts: 701
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I'd like to know an example of using Real Time Java Programming. For me is not very clear in what kind of applications I would have to use that.

Thank you

 
author
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Any application that has a time-based requirement, such as responding to a real-world event by a deadline. An example is an elevator control system that must stop the elevator within milliseconds of passing a floor sensor, or a trading application that must execute an order within a defined time-frame or the market may move unfavorably.
 
Rogerio Kioshi
Ranch Hand
Posts: 701
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Eric Bruno wrote:Any application that has a time-based requirement, such as responding to a real-world event by a deadline. An example is an elevator control system that must stop the elevator within milliseconds of passing a floor sensor, or a trading application that must execute an order within a defined time-frame or the market may move unfavorably.


But in these kind of applications, couldn't I use Threads API? Java RTS is an specialized API for that?
 
Eric Bruno
author
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No. In Java SE, java.lang.Thread is non-deterministic and does not offer predictable behavior in terms of time. You need to use a javax.realtime.RealtimeThread (or NoHeapRealtimeThread or AsyncEvenHandler) as defined by the RTSJ and as implemented in the Java RTS VM to get real-time behavior in your Java application.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic