libthr patch

David Xu davidxu at freebsd.org
Thu Feb 19 00:56:48 PST 2004


Yes, I think sigwait is too slow for synchronizing, it is better to use 
dedicated function,
this looks fine for me.

David Xu

Mike Makonnen wrote:

>Hello folks,
>
>The following patch stops libthr from using signals for syncronizng threads.
>I've tested it localy and have seen *really large* performance
>improvements in heavy thread/mutex contention situations. I'm interested
>in hearing your experiences.
> 
>P.S. - The patch to the kernel applies two new syscalls so you must
>       regenerate some files *after* applying the patch. Do the following:
>        cd /usr/src/sys/kern
>        sh makesyscalls.sh syscalls.master
>        cd /usr/src/sys/compat/freebsd32
>        sh ../../kern/makesyscalls.sh syscalls.master syscalls.conf
> 
>      and then build your kernel in the usual way.
> 
>Cheers.
>  
>



More information about the freebsd-threads mailing list