lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 16 Sep 2008 16:11:10 +0200
From:	"Xu Yang" <risingsunxy@...glemail.com>
To:	"Bernd Petrovitsch" <bernd@...mix.at>
Cc:	linux-kernel@...r.kernel.org
Subject: Re: looking for a function

Hi Bernd,

thanks for you reply.

yes, I know the thread migrates all the time, this is exactly what I
would like to observe. I would like to learn about the thread
migration of some specific scheduling algorithm. so ....

any idea about the function?

Best regards,

Yang

2008/9/16, Bernd Petrovitsch <bernd@...mix.at>:
> Hi!
>
> On Tue, 2008-09-16 at 14:50 +0200, Xu Yang wrote:
> > Hi guys,
> >
> > I am looking for a function that can show me the current thread is
> > running on which cpu.
>
> > e.g I am using pthread to write a multithreaded program, in each
> > thread I would like to insert such kind of function so that I can know
> > on which cpu this thread is running on.
>
> That doesn't make much sense as the same thread can run on a different
> CPU after each scheduling decision. And - as it is in userspace -
> scheduling can happen before any assembler op.
>
>        Bernd
> --
> Firmix Software GmbH                   http://www.firmix.at/
> mobil: +43 664 4416156                 fax: +43 1 7890849-55
>          Embedded Linux Development and Services
>
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ