Last edit: Peter Favrholdt on October 31, 2006 22:47 (1409 days, 19 hours and 53 minutes ago) (diff)
Rtai.Dk | RecentChanges | Preferences | DIAPM RTAI
- "mlockall()" has to be called once at the beginning of "main()".
int main( void )
{
/* Definition of variables etc. */
...
/* Block paging */
mlockall( MCL_CURRENT | MCL_FUTURE );
...
}
- There may not be loops in hard-/soft realtime which do not free the CPU.
- In hard realtime mode no linux systemcalls should be performed.
- If you are using a periodic timer, the period must not be zero.
- For each posix thread (created by "pthread_create( stThread, NULL, pvFunction, NULL )"), making LXRT service requests which may cause a rescheduling, it is necessary to create a buddy by "rt_task_init()" or "rt_task_init_schmod()".
- If a LXRT program is not finished clean, maybe some objects (like bits) will not be removed. So at next creating of these objects a null pointer is returned. You can check the current objects in the file "/proc/lxrt".