Beispiel #1
0
 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();
 }
Beispiel #2
0
 public void BusyWaitSetup()
 {
     _busyWait = new ThreadFiber(new Executor(), new BusyWaitQueue(1000, 100));
     _busyWait.Start();
 }
Beispiel #3
0
 public void SleepSetup()
 {
     _sleep = new ThreadFiber(new Executor(), new SleepingQueue());
     _sleep.Start();
 }
Beispiel #4
0
 public void SpinSetup()
 {
     _spin = new ThreadFiber(new Executor(), new SpinLockQueue());
     _spin.Start();
 }
Beispiel #5
0
 public void YieldSetup()
 {
     _yield = new ThreadFiber(new Executor(), new YieldingQueue());
     _yield.Start();
 }