public void Setup() { _sleep = new ThreadFiber(new Executor(), new SleepingQueue()); _sleep.Start(); _yield = new ThreadFiber(new Executor(), new YieldingQueue()); _yield.Start(); _spin = new ThreadFiber(new Executor(), new SpinLockQueue()); _spin.Start(); }
public void BusyWaitSetup() { _busyWait = new ThreadFiber(new Executor(), new BusyWaitQueue(1000, 100)); _busyWait.Start(); }
public void SleepSetup() { _sleep = new ThreadFiber(new Executor(), new SleepingQueue()); _sleep.Start(); }
public void SpinSetup() { _spin = new ThreadFiber(new Executor(), new SpinLockQueue()); _spin.Start(); }
public void YieldSetup() { _yield = new ThreadFiber(new Executor(), new YieldingQueue()); _yield.Start(); }