All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] [Posix skin] program test with pthread_set_mode_np
@ 2013-01-22  9:41 alex alex
  2013-01-22  9:56 ` Philippe Gerum
  0 siblings, 1 reply; 7+ messages in thread
From: alex alex @ 2013-01-22  9:41 UTC (permalink / raw)
  To: Xenomai

Hi,

In the attached test program I test the scheduler lock operation with
pthread_set_mode_np and the PTHREAD_LOCK_SCHED bit mask.

Description:
Two tasks are created.
t1 lock the scheduler then load the cpu, sleep then load the cpu again but
t2 task start when t1 sleep while the scheduler is locked. Why t1 is
preempted?

I run on Xenomai 2.6.2 with linux kernel 3.2.21.

Thanks in advance.

Alex
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test-pthread_set_mode_np.bz
Type: application/octet-stream
Size: 1302 bytes
Desc: not available
URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20130122/97ba44e9/attachment.obj>

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

end of thread, other threads:[~2013-01-23 10:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-22  9:41 [Xenomai] [Posix skin] program test with pthread_set_mode_np alex alex
2013-01-22  9:56 ` Philippe Gerum
2013-01-22 11:09   ` alex alex
2013-01-22 11:34     ` Philippe Gerum
2013-01-22 18:30       ` Gilles Chanteperdrix
2013-01-23 10:00         ` alex alex
2013-01-23 10:16         ` Philippe Gerum

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.