From owner-freebsd-threads@FreeBSD.ORG Mon Apr 28 19:22:02 2003 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3A30B37B401; Mon, 28 Apr 2003 19:22:02 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 65B1A43F75; Mon, 28 Apr 2003 19:22:01 -0700 (PDT) (envelope-from eischen@pcnet1.pcnet.com) Received: from pcnet1.pcnet.com (localhost [127.0.0.1]) by mail.pcnet.com (8.12.8/8.12.1) with ESMTP id h3T2M0Bg000726; Mon, 28 Apr 2003 22:22:00 -0400 (EDT) Received: from localhost (eischen@localhost)h3T2LxpJ000711; Mon, 28 Apr 2003 22:21:59 -0400 (EDT) Date: Mon, 28 Apr 2003 22:21:59 -0400 (EDT) From: Daniel Eischen To: threads@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: jdp@freebsd.org Subject: Question about rtld-elf. Anyone?.. Anyone? X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Apr 2003 02:22:02 -0000 So I was glancing at rltd-elf, specifically lockdflt.c. There seems to be an assumption that sigprocmask() can be used to protect a thread from being swapped out. Am I reading this right? There are no such guarantees with libpthread. A thread will be swapped out whenever its quantum expires, and if you've got higher priority threads, they will always run before those of lower priority -- even if they are spinning. I'm trying to debug weird hangs with mozilla. Once it hangs, I can't kill it except with SIGKILL, and then it seems to be stuck in symlook_obj(). -- Dan Eischen