0

I just bought a Raspberry Pi 2 B to so I can learn more about programming.

I noticed that there are a lot of questions about running real time software on the Raspberry Pi, such as this one:

Is it possible to run real time software?

My question is, why are there problems with running real time software on the Raspberry Pi in the first place? What are the implications of this?

CCovey
  • 113
  • 7

2 Answers2

1

It really depends on what you want to do. A real-time system usually means that a system's response to stimulus is guaranteed within a specific timeframe. A simplified example is an immediate response, rather than a queueing.

Most operating systems aren't designed to work in real time; there's very little reason for them to be. If you don't have a real time OS, it's very difficult (if not impossible) to run real time software. The primary way to deal with this is to use hardware that's dedicated to the task, and then have your operating system interface with it.

For the purposes of learning general programming, you shouldn't need to worry about this unless you have particular real time problems in mind.

Jacobm001
  • 11,904
  • 7
  • 47
  • 58
1

Real-time is a term which seems to have lost all meaning due to incorrect overuse. A lot of people seem to think it's a synonym with fast.

A real-time system is a system which has real-time requirements. A real-time requirement is typically expressed as follows:

From the time an input event happens at the system boundary to the time all needed outputs are generated at the system boundary less than x seconds will have elapsed.

Where x may be nanoseconds to days depending on the particular requirement.

You would need to examine each requirement in turn to see if the Pi could do the job.

joan
  • 71,852
  • 5
  • 76
  • 108