Saiful Khan wrote:
> Hello,
>
> I have ported my normal GNU/Linux (Posix) application in Xenomai, and I
> have used Xenomai POSIX skin to do the same. In my application main()
> function is spawning a thread using
> pthread_attr_init()
> pthread_attr_setdetachstate()
> pthread_create()
>
> But as soon as it spawn the thread the following message comes
> *Xenomai*: process *memory not locked* (missing mlockall?), and I do not
> get any message from that thread.
>
> I have already locked the paging in main() as well as in the spawned
> thread using mlockall(MCL_CURRENT | MCL_FUTURE). After google search I
> didnt found any solution to solve my problem.
>
> 1. Please tell me the reason? Is there anything I am doing wrong while
> spawning thread?
Are you sure mlockall suceeded ? Check its return value to know.
> 2. What to do so that the thread also run in highest priority?
Use pthread_attr_setschedparam, or pthread_setschedparam.
--
Gilles Chanteperdrix
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help