On 09/25/2014 01:57 PM, JAY KOTHARI wrote:
> Sir,
> How can I use real time api(or real time task) in non-real time method?
The word real-time is overloaded, so, let us try to define some terms.
A task or thread with a shadow is a user-space thread which can be
scheduled by Xenomai scheduler. Such a task is created with
rt_task_shadow or rt_task_create when using the native skin. When using
the posix skin, the main thread (the one which runs the "main" function)
is automatically shadowed during initialization, and all threads created
with the (wrapped) pthread_create service are shadowed.
When a thread with a shadow is scheduled by Xenomai scheduler, this
user-space thread is said to run in primary mode. When this thread is
scheduled by Linux scheduler, it is said to run in secondary mode. A
task without a shadow, on the other hand, can only be scheduled by the
Linux scheduler.
Most Xenomai services are only available to threads with a shadow. Some
services cause threads with a shadow to switch to primary mode, some
other services cause them to switch to secondary mode.
Now that these terms are defined, could you explain us what you are
trying to do using them instead of the "real-time" word?
--
Gilles.
_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai