From owner-freebsd-threads@FreeBSD.ORG Wed Jun 25 22:12:56 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 C779637B401 for ; Wed, 25 Jun 2003 22:12:56 -0700 (PDT) Received: from sccrmhc11.attbi.com (sccrmhc11.comcast.net [204.127.202.55]) by mx1.FreeBSD.org (Postfix) with ESMTP id 13C174402D for ; Wed, 25 Jun 2003 22:12:56 -0700 (PDT) (envelope-from julian@elischer.org) Received: from interjet.elischer.org ([12.233.125.100]) by attbi.com (sccrmhc11) with ESMTP id <2003062605125401100s5an3e>; Thu, 26 Jun 2003 05:12:55 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id WAA07324; Wed, 25 Jun 2003 22:12:52 -0700 (PDT) Date: Wed, 25 Jun 2003 22:12:51 -0700 (PDT) From: Julian Elischer To: Anurag Chaudhary In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-threads@freebsd.org Subject: Re: threads and semaphores 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: Thu, 26 Jun 2003 05:12:57 -0000 upgrade to 5.1 and use libthr or libkse (actually, 5.1++ (-current) would be best. OR link with the linuxthreads port. On Thu, 26 Jun 2003, Anurag Chaudhary wrote: > hi > > how can I keep my parent thread working and responding to user inputs while > the child thread is waiting for a semaphore using semop() which is held by > some other process. > In linux the parent thread remains active in such situation but in freebsd > the parent thread stops responding until the child thread returns from > semop(). > Is this implementation dependent feature. > Is there something that lets the child thread release resources while > waiting for the semaphore. > I used pthread_yield() but didn't work. > I also tried to change the scheduling policy and priority of the child > thread but of no use. > I am using sys V threads with pthread library on freebsd 5.0 release. > Actually I am porting this code from linux to freebsd and facing this > problem > > somebody please suggest some workaround > > thanx > Chaudhary Anurag > > _________________________________________________________________ > Gift yourself a holiday. Treat your family like royalty. > http://www.flexihols.com/2003/index.php > > _______________________________________________ > 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" >