All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] pthread creation with native api
@ 2011-11-22  8:51 Enric Bel Prim
  2011-11-22 10:09 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 3+ messages in thread
From: Enric Bel Prim @ 2011-11-22  8:51 UTC (permalink / raw)
  To: xenomai

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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-11-22 15:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-22  8:51 [Xenomai-help] pthread creation with native api Enric Bel Prim
2011-11-22 10:09 ` Gilles Chanteperdrix
2011-11-22 15:13   ` Enric Bel Prim

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.