Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Hans Zuidam <h.zuidam@wanadoo.nl>
To: gdb@sources.redhat.com
Subject: Thread debugging and scheduling behaviour
Date: Thu, 21 Oct 2004 05:10:00 -0000	[thread overview]
Message-ID: <4C340065-22ED-11D9-9E9C-00039359816C@wanadoo.nl> (raw)

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


             reply	other threads:[~2004-10-20 23:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-21  5:10 Hans Zuidam [this message]
2004-10-21 12:52 ` Daniel Jacobowitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C340065-22ED-11D9-9E9C-00039359816C@wanadoo.nl \
    --to=h.zuidam@wanadoo.nl \
    --cc=gdb@sources.redhat.com \
    --cc=h.zuidam@computer.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox