INtime® 3.1 Software - tenAsys
INtime® 3.1 Software - tenAsys
INtime® 3.1 Software - tenAsys
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
4 About RT programming<br />
This chapter describes mechanisms appropriate to RT programming:<br />
Note<br />
For information about developing an RT application using INtime software, see Chapter 10, INtime<br />
application development.<br />
Mechanism Description Page<br />
Multi-threading Switches between threads of execution. 39<br />
Preemptive, prioritybased<br />
scheduling<br />
Interrupt processing<br />
Determinism<br />
Determines which thread needs to run immediately and which can<br />
wait.<br />
Responds to external interrupts that occur during system<br />
operation.<br />
Enables threads to execute in a predictable fashion, regardless of<br />
the arrival of both internal and external events.<br />
Multi-programming Allows more than one application to run at a time. 44<br />
Inter-thread<br />
Enables asynchronous threads, which run in a random order, to 45<br />
coordination and<br />
communication<br />
coordinate and communicate with one another.<br />
Messages Enables threads to exchange data, messages, or object handles. 46<br />
Synchronization Enables threads to signal the second thread when a task is 47<br />
completed.<br />
Mutual exclusion Prevents threads from accessing data currently in use until<br />
released.<br />
47<br />
Memory pools and<br />
memory sharing<br />
System calls<br />
Real time shared<br />
libraries<br />
Allocates memory to RT applications on request and manages<br />
multiple memory requests.<br />
Programmatic interfaces you use to manipulate objects or control<br />
the computer's actions.<br />
Libraries you build that can be shared by one or more real-time<br />
applications.<br />
Exception handling Causes and proper handling of system exceptions. 51<br />
41<br />
42<br />
43<br />
48<br />
50<br />
50<br />
Multi-threading<br />
Multithreading means the computer stops running one thread and starts running<br />
another, as shown in the next figure. INtime software manages thread switching, saving<br />
the old thread’s context on the old thread’s stack and loads the new thread’s context<br />
before starting execution. An INtime software thread is a thread of execution, similar to<br />
a Windows thread.<br />
39