From owner-freebsd-threads@FreeBSD.ORG Fri Apr 20 00:32:56 2007 Return-Path: X-Original-To: freebsd-threads@freebsd.org Delivered-To: freebsd-threads@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 630B116A40A for ; Fri, 20 Apr 2007 00:32:56 +0000 (UTC) (envelope-from andjones@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.225]) by mx1.freebsd.org (Postfix) with ESMTP id 2783113C45B for ; Fri, 20 Apr 2007 00:32:56 +0000 (UTC) (envelope-from andjones@gmail.com) Received: by wr-out-0506.google.com with SMTP id 70so804074wra for ; Thu, 19 Apr 2007 17:32:55 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=Jqkj2VUgbj54OGdvDF9x2aHXiU3F91LBGFNxXI/oAR9v9DWRfUExOsW2o+RVbdtRtPRiw+eZz/8LPVoZS7rQ52TVUZcV74THOEv6sVYpyXn6pR1+JeNL4iO6szL9SSXSKaX6YnzanoG7045ZCOT3dNCJdomk91WrXGivtKNgR5w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=pgURiGUAd3KrJ1ijSmRn1COUm5BQf6w1dRuCoZLlOcTZh9cfkrTaEOwsAksf0r2CpgP+n6aoNJ70pxF5wHJk5dTA7dLRIA1t7/yhgYvTqHv3lJt4fiTO/DlaPSYf9jBOJOr+vRrn2JLvhm/xqaUoNtSPsn1MKJ83fOv9Y8og744= Received: by 10.115.78.1 with SMTP id f1mr1000772wal.1177027614818; Thu, 19 Apr 2007 17:06:54 -0700 (PDT) Received: by 10.114.160.5 with HTTP; Thu, 19 Apr 2007 17:06:54 -0700 (PDT) Message-ID: <86992cb10704191706p1f7fbc87mc08d0b661b90a15e@mail.gmail.com> Date: Thu, 19 Apr 2007 20:06:54 -0400 From: "Andy Jones" To: freebsd-threads@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Question about kse_switchin and TD_CAN_UNBIND X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Apr 2007 00:32:56 -0000 I'm curious about the meaning of the TDP_CAN_UNBIND flag being set on a thread (in its td_pflags) (see sys/proc.h). What does it mean that a thread "can unbind"? Second, why it is important that it is not set in kse_switchin (see kern/kern_kse.c) . (The answer to second question will probably become obvious with the answer to the first). -andy jones