From owner-freebsd-threads@FreeBSD.ORG Wed Jun 25 22:12:51 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 AF9C737B401 for ; Wed, 25 Jun 2003 22:12:51 -0700 (PDT) Received: from hotmail.com (law9-f84.law9.hotmail.com [64.4.9.84]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D68644017 for ; Wed, 25 Jun 2003 22:12:51 -0700 (PDT) (envelope-from chaudharyanurag@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 25 Jun 2003 22:12:51 -0700 Received: from 202.144.62.166 by lw9fd.law9.hotmail.msn.com with HTTP; Thu, 26 Jun 2003 05:12:50 GMT X-Originating-IP: [202.144.62.166] X-Originating-Email: [chaudharyanurag@hotmail.com] From: "Anurag Chaudhary" To: mezz7@cox.net Date: Thu, 26 Jun 2003 10:42:50 +0530 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 26 Jun 2003 05:12:51.0106 (UTC) FILETIME=[9752B820:01C33BA1] 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:52 -0000 Is multithreading more robust and secure in freebsd 5.1 than freebsd 5.0? >From: Jeremy Messenger >To: Anurag Chaudhary >CC: freebsd-threads@freebsd.org >Subject: Re: threads and semaphores >Date: Thu, 26 Jun 2003 00:03:29 -0500 > >On Thu, 26 Jun 2003 10:17:02 +0530, 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. > >You do really need to update your FreeBSD to 5.1 if you want to play with >the libkse/libthr (thread).. > >Cheers, >Mezz > >>Actually I am porting this code from linux to freebsd and facing this >>problem >> >>somebody please suggest some workaround >> >>thanx >>Chaudhary Anurag > > >-- >bsdforums.org 's moderator, mezz. _________________________________________________________________ Are you a geek? Are you a techno freak? http://www.msn.co.in/Computing/