Questions tagged [real-time]

Real-time processing means processing data as it is created or modified. This is in contrast to batch processing, wherein data is processed in large chunks at a specific interval (e.g. every night).

119 questions
115
votes
4 answers

What operating systems are used in airplanes, and what programming languages are they developed in?

I was wondering if anyone knows what is the operating system used in commercial airplanes (say Boeing or Airbus). Also, what is the (preferred) real-time programing language? I heard that Ada is used in Boeing, so my question is - why Ada? what are…
adhg
  • 1,149
  • 2
  • 8
  • 8
38
votes
3 answers

Can someone explain in simple terms what is the disruptor pattern?

I would like if you could explain to me in a simple way how does the disruptor patter work. This concept has been elusive to me as of know. Perhaps with your help I could comprehend it.
chrisapotek
  • 642
  • 1
  • 5
  • 8
28
votes
3 answers

Except garbage collector, what else makes Java a non real time programming language

Except the garbage collector, what are some other features in Java that make it unsuitable for real time programming? On the net, whenever Java vs C++ is discussed with regards to real time programming, it is always the garbage collector that is…
Kaushik
  • 1,195
  • 3
  • 12
  • 20
20
votes
3 answers

What are the reasons for why a Java/Linux stack fails to be "real time"?

I have often heard developers mention that Java can't "do Real Time", meaning a Java app running on Linux cannot meet the requirements of a deterministic real-time system, such as something running on RIOT-OS, etc. I am trying to understand why. My…
smeeb
  • 4,820
  • 10
  • 30
  • 49
19
votes
2 answers

How to get real time notifications, when a database change (insert, update, delete) occurs?

I'm creating a dashboard which should monitor a database table. I have only database access (no application layer). The table is rather large (10 million rows), however not changing rapidly (100 inserts/updates per minute) How can I find out whether…
Kiril
  • 529
  • 2
  • 4
  • 11
16
votes
3 answers

How to deal with faster computers in a client/server real-time videogame

I'm creating my first online game using socket.io, and I'd like it to be a real-time multiplayer game like agar.io or diep.io. But I've run into the issue of trying to figure out how to get all the computers to work at the same speed. I have three…
Pro Q
  • 667
  • 1
  • 7
  • 15
12
votes
2 answers

Benefits of RTOS vs Bare Metal for MCU Programming?

Please note: This question specifically mentions two RTOSes but is more generic and can probably be answered by anybody who has written C code for embedded RTOSes before, and had their software run directly on MCUs. I am interested in learning more…
smeeb
  • 4,820
  • 10
  • 30
  • 49
12
votes
6 answers

Real time unit testing - or "how to mock now"

When you are working on a feature that depends on time... How do you organize unit testing ? When your unit tests scenarios depend on the way your program interprets "now", how do you set them up ? Second Edit: After a Couple of days reading your…
mika
  • 379
  • 1
  • 4
  • 12
10
votes
6 answers

How to save during real-time collaboration

I want multiple users to edit same document. Problem I'm facing is when a new user joins, he might see an outdated document. How do I make sure that new users get most recent changes? Some solutions I thought of: Save on every change. I don't…
dev.e.loper
  • 171
  • 1
  • 10
9
votes
3 answers

How to modify software to become real-time?

For the first I would like to mention that I'm newbie in real-time systems programming That's why I'm not sure if my questions are correct. Sorry for that But I need some help Question in short: How to implement hard real-time software to be sure…
user172825
  • 215
  • 2
  • 3
8
votes
4 answers

What optimizations can be done for soft real-time code in C#?

I'm writing a soft real-time application in C#. Certain tasks, like responding to hardware requests coming in from a network, needs to be finished within a certain amount of milliseconds; however it is not 100% mission-critical to do so (i.e. we can…
9a3eedi
  • 2,101
  • 3
  • 23
  • 29
7
votes
3 answers

How is time calculation performed by a computer?

I need to add a certain feature to a module in a given project regarding time calculation. For this specific case I'm using Java and reading through the documentation of the Date class I found out the time is calculated in milliseconds starting from…
Jorge Mendoza
  • 73
  • 1
  • 4
7
votes
2 answers

Migrating from Python to Scala wise when a lot of work is already done in Python?

Me and my friend are developing a web-app in Python + Flask + PostgreSQL. We have been working on it for the past few months and have developed a lot of schema/use-cases specific to Python + Flask + PostgreSQL. Now, all of a sudden, we plan to move…
c0da
  • 1,526
  • 3
  • 12
  • 20
6
votes
2 answers

Using websockets for server “broadcasting”?

I want to make it possible to edit shared todo lists in real time. There's already a REST interface, and it's possible to send updates to the server - add items, mark items as done, etc. For the client to get these updates immediately, I did some…
User
  • 341
  • 4
  • 10
6
votes
3 answers

Floating point undesirable in highly critical code?

Question 11 in the Software Quality section of "IEEE Computer Society Real-World Software Engineering Problems", Naveda, Seidman, lists fp computation as undesirable because "the accuracy of the computations cannot be guaranteed". This is in the…
1
2 3 4 5 6 7 8