From owner-freebsd-threads@FreeBSD.ORG Tue Oct 9 07:05:41 2007 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4A2A116A468 for ; Tue, 9 Oct 2007 07:05:41 +0000 (UTC) (envelope-from kip.macy@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.180]) by mx1.freebsd.org (Postfix) with ESMTP id 204E913C49D for ; Tue, 9 Oct 2007 07:05:41 +0000 (UTC) (envelope-from kip.macy@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so1990716waf for ; Tue, 09 Oct 2007 00:05:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=VM8iAMRQfyPClXtOS7fuyaKcQAp5D4EELk+Fvtb29RY=; b=PVyA5JgYxkeDoAJsXwzTktqHq19dX7RZ3LEJrR//ZDMqf9MgUZNmEbY5ML9dlA0lrlDofjBO01zeLxnhmlm6o60MCkHdObvleokdPSx1AXxgotliQLaoXCidQEyGyB6SU7++t5zJYNYaM01Y5sZIvPxoDTReY/6gWiAI02aCZ/A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Pp7NuAjGalrmNxVGyCCWsxEWxA+/uGCft2Va1SW/49OaHDpO/hdKKivx4qzbH12j+LJioMGmtda2UfKnQFJxtltHanILhIYqwzuO4cY73OnzJTKpyJ0IslBuJDY1GtsoEk/Nj9uhReqJ7hYrlR71Nzeyyfqhj3Q9ixlTD8+cP/A= Received: by 10.114.169.2 with SMTP id r2mr1965104wae.1191913540298; Tue, 09 Oct 2007 00:05:40 -0700 (PDT) Received: by 10.114.13.15 with HTTP; Tue, 9 Oct 2007 00:05:40 -0700 (PDT) Message-ID: Date: Tue, 9 Oct 2007 00:05:40 -0700 From: "Kip Macy" To: "Girish Hilage" In-Reply-To: <1191912673.2054.41.camel@ps2408.persistent.co.in> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1191824849.2054.5.camel@ps2408.persistent.co.in> <1191911671.2054.32.camel@ps2408.persistent.co.in> <1191912673.2054.41.camel@ps2408.persistent.co.in> Cc: Daniel Eischen , freebsd-threads@freebsd.org Subject: Re: Co-opting signals 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: Tue, 09 Oct 2007 07:05:41 -0000 On 10/8/07, Girish Hilage wrote: > > Thanks Kip. > My application is using pthread_kill() to send SIGUSR1 to child threads. > I am using 4.x and I want to make sure if SIGUSR1 is not being co-opted. Or > for a complete information what all signals are being co-opted and how > should I find out from libc_r source that it's not being co-opted? I grep'ed > for SIGUSR1 in libc_r source code and did not find it being used anywhere so > I came to the conclusion that it's not being co-opted. Is greping through > the source code enough to determine that the signal is not being used? Linuxthreads used SIGUSR1. libc_r uses SIGVTALRM for driving preemptive context switches. > > > On Mon, 2007-10-08 at 23:36 -0700, Kip Macy wrote: > libc_r has been disconnected from the build for some time. > > On 10/8/07, Girish Hilage wrote: > > Thanks Daniel for your response. > > But I want to know if libc_r is still(in it's latest version) co-opting > > signals internally? > > > > Regards, > > Girish > > > > On Mon, 2007-10-08 at 15:01 -0400, Daniel Eischen wrote: > > > > > On Mon, 8 Oct 2007, Girish Hilage wrote: > > > > > > > Hi, > > > > > > > > I heard that, user level pthreads co-opt some signals to get their > > > > job done. > > > > Can anybody please let me know which are these signals? > > > > > > Not true since 4.x since only libc_r did this. Since FreeBSD 5.x, > > > the default thread libraries (libpthread/libkse, and libthr) do > > > not use signals for their implementation. Under 5.x and subsequent, > > > just compile and link your program normally (use -pthread or > > > -lpthread when linking) and you will get the default thread > > > library (not libc_r, which has been deprecated in 7.x/current). > > > > > _______________________________________________ > > freebsd-threads@freebsd.org mailing list > > > http://lists.freebsd.org/mailman/listinfo/freebsd-threads > > To unsubscribe, send any mail to > "freebsd-threads-unsubscribe@freebsd.org" > > > > > > DISCLAIMER ========== This e-mail may contain privileged and confidential > information which is the property of Persistent Systems Ltd. It is intended > only for the use of the individual or entity to which it is addressed. If > you are not the intended recipient, you are not authorized to read, retain, > copy, print, distribute or use this message. If you have received this > communication in error, please notify the sender and delete all copies of > this message. Persistent Systems Ltd. does not accept any liability for > virus infected mails. =========== "Persistent Systems Pvt. Ltd. is now > PERSISTENT SYSTEMS LIMITED" ===========