Hi,
I have some questions regarding pthread and NATIVE API...

I use xenomai 2.4.8 with native API and RTDM services in a linux 2.6.28
lite5200 embedded platform.
My application creates several realtime tasks (rt_task) using native
api, inside a linux environment with other applications.  All worked
fine, till I need to create, from any of this rt_task, some nonrealtime
tasks to do a long and not priority jobs (parse huge xml files, compress
/ uncompress them...).
To do that, I use pthread_create(), to create a non realtime task with
the "default attributes".
I expected that this pthread would share the remaining CPU time with the
other linux applications.   
But it seems that this new pthread created has higher priority than any
of the other non-RT linux apps.  The feeling is that the CPU is shared
only between the realtime tasks and this pthread: for instance, one of
the other non-RT apps controls the watchdog, and it resets the system
some seconds after the pthread is created.
If I call pthread_getschedparam inside the pthread I get thread prio =
0, and SCHED_OTHER.
I tried using __real_pthread_create as well, and had the same result.

Is correct to use pthread_create to create a new non-RT task from a
rt_task?
Which are the attributes/priority of that pthread? Does it inherit some
of the RT parent "privileges"?

Thanks,
Enric. 
 
----------------------------------------- PLEASE NOTE 
-------------------------------------------
This message, along with any attachments, may be confidential or legally 
privileged. 
It is intended only for the named person(s), who is/are the only authorized 
recipients.
If this message has reached you in error, kindly destroy it without review and 
notify the sender immediately.
Thank you for your help.
ZIV uses virus scanning software but excludes any liability for viruses 
contained in any attachment.
 
------------------------------------ ROGAMOS LEA ESTE TEXTO 
-------------------------------
Este mensaje y sus anexos pueden contener información confidencial y/o con 
derecho legal. 
Está dirigido únicamente a la/s persona/s o entidad/es reseñadas como único 
destinatario autorizado.
Si este mensaje le hubiera llegado por error, por favor elimínelo sin revisarlo 
ni reenviarlo y notifíquelo inmediatamente al remitente. Gracias por su 
colaboración.  
ZIV utiliza software antivirus, pero no se hace responsable de los virus 
contenidos en los ficheros anexos.

_______________________________________________
Xenomai-help mailing list
Xenomai-help@gna.org
https://mail.gna.org/listinfo/xenomai-help

Reply via email to