On Saturday 16 February 2008 11:43, Bart Van Assche wrote:
> On Feb 16, 2008 10:35 AM, Markus Schiltknecht <[EMAIL PROTECTED]> wrote:
> > I would like to simulate the scheduler, or even influence it, to be able
> > to reproducibly test execution of concurrent code. Because as commodity
> > hardware gets more and more CPU cores, multi-threaded code will get more
> > and more common. And to be able to test different conditions between
> > threads of execution, I would like to control the scheduler to be able
> > to reproducibly get into a certain state.
>
> This makes me wonder why you would like to do this ?

Indeed; it seems a bit pointless to mess with the scheduler.  In
any case it does not control the order in which threads run --
the kernel does that.  It only really ensures that one thread
runs at any one time.

You'd be better off trying out one of the threading tools in 3.3.0
(Helgrind or Exp-drd).

J

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Valgrind-developers mailing list
Valgrind-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-developers

Reply via email to