Saiful Khan wrote:
> Hello,
> 
> I have ported my GNU/Linux(Posix) application in Xenomai, and I have
> used the xenomai skin. My application is running in highest priority (99).
> 1. How can I be sure that my application is running in Xenomai/Primary
> domain with highest priority?

cat /proc/xenomai/sched

should give you a list of the threads that are actually known by xenomai.

> 2. How can I ensure whethere it is switching to secondary mode due to
> some calls like pritf()?

You have an example of using the SIGXCPU signal for this purpose here:
http://www.xenomai.org/documentation/trunk/html/api/sigxcpu_8c-example.html

This example uses the native API, if you are using the posix api, you
should replace rt_task_set_mode with pthread_set_mode_np, documented here:
http://www.xenomai.org/documentation/trunk/html/api/group__posix__thread.html#g9dd3db5524fccb05a8868b7c33ccaa79

-- 
                                                 Gilles Chanteperdrix

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to