Re: I like SCHED_4BSD

[ Available lists | Index of freebsd-current | Month of Mar 2004 | Week of 11 Mar 2004 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Craig Rodrigues <rodrigc@crodrigues.org>
Date
11 Mar 2004 16:43:53
Subject
Re: I like SCHED_4BSD
Message-ID
20040312004353.GA17510@crodrigues.org

In reply to

[ Hide this part ]
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*)


--
Craig Rodrigues
http://crodrigues.org
rodrigc@crodrigues.org


Elapsed time: 0.192 seconds