Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Sep 2006 08:33:14 +0800
From:      David Xu <davidxu@freebsd.org>
To:        freebsd-hackers@freebsd.org
Cc:        John Giacomoni <John.Giacomoni@colorado.edu>
Subject:   Re: pin/bind a pthread to a processor?
Message-ID:  <200609090833.14856.davidxu@freebsd.org>
In-Reply-To: <57213DB3-3D5A-4B11-AB29-5696DC4B3AC2@colorado.edu>
References:  <57213DB3-3D5A-4B11-AB29-5696DC4B3AC2@colorado.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Saturday 09 September 2006 04:18, John Giacomoni wrote:
> Is it possible to bind a pthread to a processor in 5.5 or 6.1?
>
> I currently have a code base that uses libpthread with multiple
> threads, mutexes and condition variables.
> The problem I'm having is that I seem to be suffering wall-clock
> timing aberrations that I believe are introduced by the scheduler.
>
> Thanks,
>
> John G
>
> --
>
> John.Giacomoni@colorado.edu
> University of Colorado at Boulder
> Department of Computer Science
> Engineering Center, ECCR 1B50
> 430 UCB
> Boulder, CO 80303-0430
> USA

I don't think we have such API allowing you to bind a thread to
a specific CPU, I had implemented such an API for DragonFlyBSD, but
its 1:1 threading is not mature yet.

David Xu



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200609090833.14856.davidxu>