On Sat, 7 Oct 2006 07:38:12 +0800 David Xu <[EMAIL PROTECTED]> mentioned:
> On Friday 06 October 2006 21:45, Stanislav Sedov wrote: > > > AFAIK, you can use scheduler API, the sched_bind() moves current thread > > > to a specific CPU, hope this helps. > > > > You can find examples e.g. in hwpmc driver. Just grep by sched_bin. > > > > -- > > Stanislav Sedov <[EMAIL PROTECTED]> [[Россия, Москва]] > > PGP id: 0xEB269581 http://people.freebsd.org/~stas/stas.key.asc > > sched_pin is different than sched_bind, sched_pin only pins current thread on > current cpu, but sched_bind allows a thread to migrate to another CPU, after > the sched_bind returns, the thread should already be running on the specified > CPU, it makes it possible that a thread can iterate through all available > CPUs. > Yeah;-) I mean sched_bind, just typo. -- Stanislav Sedov <[EMAIL PROTECTED]> [[Россия, Москва]] PGP id: 0xEB269581 http://people.freebsd.org/~stas/stas.key.asc
pgp6gxVNYRvWw.pgp
Description: PGP signature

