Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753582Ab0AJU6J (ORCPT ); Sun, 10 Jan 2010 15:58:09 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753171Ab0AJU6I (ORCPT ); Sun, 10 Jan 2010 15:58:08 -0500 Received: from mail-pw0-f42.google.com ([209.85.160.42]:61114 "EHLO mail-pw0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752929Ab0AJU6H (ORCPT ); Sun, 10 Jan 2010 15:58:07 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=LT8jROoYOe8uMx74t/InNmO9mT18mS4jZLCMCXaWvUa1RvWpJyxQJjKdA4CUE7h3Rj yF5qi2AcBBNwrQfE0F0iRX7O111jM/CmNPT+k5f8crhl4LjA8sqb167CjEsv7MgyTrQU 25042DMkuYTrRvgm+t8t+I0QYqMGl+DDvhUjo= MIME-Version: 1.0 In-Reply-To: <8d6898731001042332m6b5b97b0n5515ae166f62aad2@mail.gmail.com> References: <8d6898731001042332m6b5b97b0n5515ae166f62aad2@mail.gmail.com> Date: Sun, 10 Jan 2010 12:58:06 -0800 Message-ID: Subject: Re: init_task belongs to "process 0" or "process 1"? From: "Leonidas ." To: Nobin Mathew Cc: Shivdas Gujare , linux-kernel@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1081 Lines: 23 > init_task is the head of doubly linked list which holds all > task_structs in the system. init_task is again the task_struct for > process 0/swapper/idle task. This process is created manually (I meant > to say not by copy_process() calls). Manually means they are static > structures defined in the code (see INIT_TASK, init_mm, init_fs etc). > There will be multiple idle task if there is more than 1 cpu core. > Idle task is the one which is scheduled if there is no other task > ready for scheduling. An idle task per core? So these tasks must be having different pids right? As per my understanding there is only 1 idle task, in that case on multiple cores when there is no activties on more than one cores, how things would work? Same task cant be stored on different cores at the same time right? How is this handled? -Leo. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/