This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Thread debugging and scheduling behaviour
- From: Hans Zuidam <h dot zuidam at wanadoo dot nl>
- To: gdb at sources dot redhat dot com
- Date: Thu, 21 Oct 2004 01:10:56 +0200
- Subject: Thread debugging and scheduling behaviour
- Reply-to: Hans Zuidam <h dot zuidam at computer dot org>
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