MESSAGE
DATE | 2015-03-22 |
FROM | mrbrklyn@panix.com
|
SUBJECT | Subject: [LIU Comp Sci] [vinc94@gmail.com: Re: Kernel thread scheduling]
|
From owner-learn-outgoing-at-mrbrklyn.com Sun Mar 22 20:01:46 2015 Return-Path: X-Original-To: archive-at-mrbrklyn.com Delivered-To: archive-at-mrbrklyn.com Received: by mrbrklyn.com (Postfix) id A1AF41612EF; Sun, 22 Mar 2015 20:01:46 -0400 (EDT) Delivered-To: learn-outgoing-at-mrbrklyn.com Received: by mrbrklyn.com (Postfix, from userid 28) id 9299C1612F0; Sun, 22 Mar 2015 20:01:46 -0400 (EDT) Delivered-To: learn-at-nylxs.com Received: by mrbrklyn.com (Postfix, from userid 1000) id 33A9D1612EF; Sun, 22 Mar 2015 20:01:46 -0400 (EDT) Date: Sun, 22 Mar 2015 20:01:46 -0400 From: mrbrklyn-at-panix.com To: learn-at-nylxs.com Subject: [LIU Comp Sci] [vinc94-at-gmail.com: Re: Kernel thread scheduling] Message-ID: <20150323000146.GB18290-at-www.mrbrklyn.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: owner-learn-at-mrbrklyn.com Precedence: bulk Reply-To: learn-at-mrbrklyn.com
----- Forwarded message from Vincenzo Scotti -----
Date: Mon, 23 Mar 2015 00:14:49 +0100 From: Vincenzo Scotti To: Anand Moon Cc: Jeff Haran , "kernelnewbies-at-kernelnewbies.org" Subject: Re: Kernel thread scheduling User-Agent: Mutt/1.5.23 (2014-03-12)
Thank you for the example.
I understand what are the scheduling mechanics depending on task->state. But suppose another situation. Let's say I change current state to TASK_INTERRUPTIBLE. If I start now some long operation, then shouldn't the scheduler kick in as soon as he can and put my thread asleep? Or should I call necessarily schedule()? And if so, why?
_______________________________________________ Kernelnewbies mailing list Kernelnewbies-at-kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
----- End forwarded message -----
-- So many immigrant groups have swept through our town that Brooklyn, like Atlantis, reaches mythological proportions in the mind of the world - RI Safir 1998 http://www.mrbrklyn.com
DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002 http://www.nylxs.com - Leadership Development in Free Software http://www2.mrbrklyn.com/resources - Unpublished Archive http://www.coinhangout.com - coins! http://www.brooklyn-living.com
Being so tracked is for FARM ANIMALS and and extermination camps, but incompatible with living as a free human being. -RI Safir 2013
|
|