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