All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Hancock <hancockr@shaw.ca>
To: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: question on 2.4 scheduler, threads, and priority inversion
Date: Tue, 19 Apr 2005 17:30:57 -0600	[thread overview]
Message-ID: <426594B1.9000307@shaw.ca> (raw)
In-Reply-To: <3V45v-tx-39@gated-at.bofh.it>

Chris Friesen wrote:
> I seem to be having an issue with 2.4 and linuxthreads.
> 
> I have a program that spawns a child thread, and that child boosts 
> itself into a realtime scheduler class.
> 
> The child then went crazy and turned into a cpu hog.  At this point, a 
> higher-priority task detected the hog, and tried to kill the process by 
> sending a "kill -9" to the main thread.  Unfortunately, it appears that 
> there is some kind of priority-inversion thing happening, as the process 
> did not die.
> 
> Is this expected behaviour?  Is there any way around this?  Do I need to 
> put the main thread at a higher priority than any of the child threads? 
>  What about the manager thread?
> 
> Thanks,
> 
> Chris

I believe that in the old LinuxThreads implementation the manager thread 
  is the one that handles all signals, so it may need its priority 
increased as well. NPTL threads likely handle this much better (there is 
no manager thread).

-- 
Robert Hancock      Saskatoon, SK, Canada
To email, remove "nospam" from hancockr@nospamshaw.ca
Home Page: http://www.roberthancock.com/


       reply	other threads:[~2005-04-19 23:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <3V45v-tx-39@gated-at.bofh.it>
2005-04-19 23:30 ` Robert Hancock [this message]
2005-04-19 23:38   ` question on 2.4 scheduler, threads, and priority inversion Chris Friesen
2005-04-19 16:46 Chris Friesen

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=426594B1.9000307@shaw.ca \
    --to=hancockr@shaw.ca \
    --cc=linux-kernel@vger.kernel.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 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.