This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Thread debugging and scheduling behaviour
- From: Daniel Jacobowitz <drow at false dot org>
- To: Hans Zuidam <h dot zuidam at computer dot org>
- Cc: gdb at sources dot redhat dot com
- Date: Wed, 20 Oct 2004 19:25:49 -0400
- Subject: Re: Thread debugging and scheduling behaviour
- References: <4C340065-22ED-11D9-9E9C-00039359816C@wanadoo.nl>
On Thu, Oct 21, 2004 at 01:10:56AM +0200, Hans Zuidam wrote:
> 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.
GDB does not have any way to support thread priority.
--
Daniel Jacobowitz