real-time aspects means system should be complete task within deadline. What happen when it fail to complete task in deadline? Does the task go to the Suspend State?Even with an RTOS you need to resort to ISRs to things that must be responded to quickly.
You have not told us anything useful about what you are trying to do but if you need to learn an RTOS on top of everything else for a real-time then I would suggest that you stick to the real-time aspects and leave the RTOS until later (if at all).
Susan
There are two issues here: 1) what happens if you don't process all of the data fast enough and 2) what happens to the task at the end of the RTOS time slice.real-time aspects means system should be complete task within deadline. What happen when it fail to complete task in deadline? Does the task go to the Suspend State?
Hi,
Real time tssks:
*audio processing. Any incoming data needs to be processed.
- Often data by data in a filter. One data in, one data out.
- or as packets in an compression/decompression like MPEG.
If it fails to process the data within the given time, then you loose data. The sound will stutter.
Klaus
When do you consider a system to be a real time system?
Each task has a deadline by which it must complete. If the deadline of the task is less then 15ms, will it be a real time system ?
Hi,
There is no limit of absolute time.
Most of real time applications run in microseconds up to hundreds of milliseconds.
Even worse if your system hangs because of this timing problem.
Klaus
I´m confused a bit.digital signal processing for the communication is out of my work area. Have you designed real time systems other than for digital signal processing?
Hi,
But this does not mean that I use RTOS. In most (all?) applications we do this with interrupt controlled time slices (processed in main loop context) and independetly running ISRs.
Klaus
What do we need to set priority in program ?Done fast enough it gives the impression the processor is running several programs at once when in reality it is actually only running one at a time but selecting that one out of several.
Brian.
int main ()
{
intilize();
while ()
{
}
return 0;
}
ISR1() // do the task1 for 20ms
{
do task1;
}
ISR2() /// do the task2 for 30ms
{
do task2;
}
ISR3() /// do the task3 for 25ms
{
do task3;
}
Yes, as said already.Do you use interrupts to run any task for specific time?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?