From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 8 09:43:59 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A69FC1065677 for ; Thu, 8 Jan 2009 09:43:59 +0000 (UTC) (envelope-from aksoy.for.research@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.189]) by mx1.freebsd.org (Postfix) with ESMTP id 35D068FC56 for ; Thu, 8 Jan 2009 09:43:59 +0000 (UTC) (envelope-from aksoy.for.research@gmail.com) Received: by fk-out-0910.google.com with SMTP id k31so5857106fkk.11 for ; Thu, 08 Jan 2009 01:43:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=1UCvuoikmQdjrQuPv+jxj2yl1r9aJawkAL0ZJyq5qXk=; b=NkeHcM2sP8n+59ufOFQVyvhER2OUvub5F98Uv02zbhZ6uQd+cVOXWfAduRXY6qeUPg DVprhKEFRIXbPV7Hj3BoBrW9yjBUCV38KS7TeFJwomOj7azCP4Y7Er4au9HRer/cRo1p SoIuzVXa1E+MiFnMMbYySSIyGXz+hcV/96cug= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=mJZwAw9afkU1Xz4/mLTbXoXTXX30dy71JJYlrRtBbgcpD2ZzmtGuDM4N3hCsH6vehR n+Si1woB8Uh5neABM1pyx4aItI25OTD5pKwVZ+2CZBQQeRtYxrcTV6OOzUPoH1XvjUQ+ vMLGVyDrwaRmBgH8FZCHnt3U8iOmgwBv5ufXg= Received: by 10.181.220.19 with SMTP id x19mr9258772bkq.136.1231406588680; Thu, 08 Jan 2009 01:23:08 -0800 (PST) Received: by 10.181.153.11 with HTTP; Thu, 8 Jan 2009 01:23:08 -0800 (PST) Message-ID: <14ded62c0901080123u7268055epb3e17d84aa757051@mail.gmail.com> Date: Thu, 8 Jan 2009 04:23:08 -0500 From: "=?ISO-8859-1?Q?Mehmet_Ali_Aksoy_T=DCYS=DCZ?=" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Threads and SMP kernel scheduling X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jan 2009 09:44:00 -0000 Hi all, After I had a bit googling I got confused. My questions are simple and they are as follows : 1-) "Are pthreads (or threads in general) of one process scheduled to different cores on multi-core systems running Linux or BSD?" 2-) What if there are multiple processes which have multiple threads? Does it change the answer of (1)? I found some answers but they are not sharp. Somebody says "can be scheduled" but "can be" is not a precise answer (in my opinion.) Thanks everybody in advance. Mehmet