Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Thread debugging and scheduling behaviour
@ 2004-10-21  5:10 Hans Zuidam
  2004-10-21 12:52 ` Daniel Jacobowitz
  0 siblings, 1 reply; 2+ messages in thread
From: Hans Zuidam @ 2004-10-21  5:10 UTC (permalink / raw)
  To: gdb

Hi,

When running a simple multi-threaded test outside and inside GDB we
see different scheduling behaviour.  This is on a Linux 2.4.20 system.

Specifically the test uses SCHED_FIFO scheduling and fixed priorities.
What we see is that when run outside GDB the higher priority threads
run first until they yield, while running in GDB (just a `run' no
breakpoints) causes low priority threads to run before high priority
ones.

Is this "expected" Linux behaviour or does it have something to do
with the thread handling in GDB?  Any pointers are greatly appreciated.

With kind regards,
Hans Zuidam
--
Hans Zuidam Advies				tel. +31 40 2481546
De Koppele 136					mob. +31 6 42345456
5632 LD Eindhoven				e-mail: h.zuidam@computer.org
The Netherlands


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

end of thread, other threads:[~2004-10-20 23:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-21  5:10 Thread debugging and scheduling behaviour Hans Zuidam
2004-10-21 12:52 ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox