Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Jun 2003 22:16:32 -0700 (PDT)
From:      Julian Elischer <julian@elischer.org>
To:        Anurag Chaudhary <chaudharyanurag@hotmail.com>
Cc:        freebsd-threads@freebsd.org
Subject:   Re: threads and semaphores
Message-ID:  <Pine.BSF.4.21.0306252213230.2537-100000@InterJet.elischer.org>
In-Reply-To: <Law9-F84rXKcIDTTVI8000082b7@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
much.
It's one of the main differences between 5.0 and 5.1
in fact you shoudl go past 5.1 and use 5.1++ -current as of next week 
if you can wait a while... (you should link with either libkse or
libthr, OR you can link as before but remap
which threds library to use at runtime using teh libmap stuff.



in the meanwhile, since your app links on linux you should be able
to use the linux threads port for FreeBSD


On Thu, 26 Jun 2003, Anurag Chaudhary wrote:

> Is multithreading more robust and secure in freebsd 5.1 than freebsd 5.0?
> 
> >From: Jeremy Messenger <mezz7@cox.net>
> >To: Anurag Chaudhary <chaudharyanurag@hotmail.com>
> >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 
> ><chaudharyanurag@hotmail.com> 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/
> 
> _______________________________________________
> 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"
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0306252213230.2537-100000>