I like SCHED_4BSD
David O'Brien
obrien at freebsd.org
Wed Mar 17 18:31:37 PST 2004
Anyone willing to make a port of this?
On Thu, Mar 11, 2004 at 07:43:53PM -0500, Craig Rodrigues wrote:
> On Thu, Mar 11, 2004 at 04:18:15PM -0800, Steve Kargl wrote:
> > > http://www.cs.utah.edu/~regehr/hourglass/
> >
> > I looked at the site. The web page states that hourglass required
> > linuxthreads on FreeBSD. You'll probably need to ask Daniel, David,
> > or Julian (the KSE gang) how difficult it may be to port hourglass
> > to use KSE and lpthread.
>
> It's very easy actually. I submitted a patch to John Regehr
> at Utah, but he is a bit busy these days. It compiled and
> ran quite nicely, but I am not a scheduling guru, so don't
> know how to analyze the results.
>
> --- aclocal.m4.orig Fri Mar 5 17:42:03 2004
> +++ aclocal.m4 Fri Mar 5 17:42:13 2004
> @@ -36,7 +36,7 @@
>
> # serial 10
>
> -AC_PREREQ([2.54])
> +AC_PREREQ([2.53])
>
> # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
> # the ones we care about.
> --- configure.ac.orig Fri Mar 5 17:41:40 2004
> +++ configure.ac Fri Mar 5 14:10:33 2004
> @@ -95,8 +95,11 @@
> on_unix='yes' ;
> on_windows='no' ;;
> *freebsd*)
> - LDFLAGS='-llthread -llgcc_r -L/usr/local/lib' ;
> - CFLAGS='-D_THREAD_SAFE -I/usr/local/include/pthread/linuxthreads' ;
> + os_version=`sysctl -n kern.osreldate`
> + if test $os_version -lt "502102"; then
> + LDFLAGS='-llthread -llgcc_r -L/usr/local/lib' ;
> + CFLAGS='-D_THREAD_SAFE -I/usr/local/include/pthread/linuxthreads' ;
> + fi
> on_unix='yes' ;
> on_windows='no' ;;
> *cygwin*)
More information about the freebsd-ports
mailing list