All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] [QUESTION] thread creation and hook function
@ 2013-04-13 16:58 alex alex
  2013-04-13 17:41 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 21+ messages in thread
From: alex alex @ 2013-04-13 16:58 UTC (permalink / raw)
  To: Xenomai

Hi all,

I made a simple debugging program with the hook native functions and I
see something
I do not understand...

This program create 1 thread who loads the CPU for some time.

case 1 - Looking at the kernel log, we can see that the task is created in the
primary mode then immediatly switch to the secondary (it's the root linux
task who loads the cpu).

I made 2 others tests:
case 2 - When I release the context with a rt sleep function, we see that the
task remains in the primary mode during the CPU load.

case 3 - I try to use "pthread_set_mode_np(0, PTHREAD_PRIMARY)" to force
the task to remain in primary mode but I see that it's still the root task
who loads the cpu.

I would appreciate if someone could clear my head about this behavior.

Alex.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_switch.tar.bz2
Type: application/x-bzip2
Size: 2613 bytes
Desc: not available
URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20130413/51834ca0/attachment.bin>

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

end of thread, other threads:[~2013-04-16  7:03 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-13 16:58 [Xenomai] [QUESTION] thread creation and hook function alex alex
2013-04-13 17:41 ` Gilles Chanteperdrix
2013-04-13 18:20   ` alex alex
2013-04-13 20:55     ` Gilles Chanteperdrix
2013-04-13 22:41       ` alex alex
2013-04-13 23:05         ` Gilles Chanteperdrix
2013-04-13 23:07           ` Gilles Chanteperdrix
2013-04-13 23:37         ` Gilles Chanteperdrix
2013-04-15  8:47           ` alex alex
2013-04-15  9:14             ` Philippe Gerum
2013-04-15 10:25               ` alex alex
2013-04-15 12:36                 ` Philippe Gerum
2013-04-15 13:05                   ` Philippe Gerum
2013-04-15 13:08                     ` Philippe Gerum
2013-04-15 13:43                   ` alex alex
2013-04-15 13:48                     ` alex alex
2013-04-15 14:06                     ` Philippe Gerum
     [not found]                       ` <CAPpP=rMsqp5SOfq8_dNUOZ5UFugNa-YwsLyT5WT4d01_UTWRMA@mail.gmail.com>
2013-04-15 14:27                         ` Philippe Gerum
2013-04-15 19:45                           ` Gilles Chanteperdrix
2013-04-16  7:03                             ` Philippe Gerum
2013-04-15 19:43             ` Gilles Chanteperdrix

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.