public Window1() { InitializeComponent(); this.DataContext = this; this.threadPoolClass = new ThreadPoolClass(this); this.taskClass = new TaskClass(this); this.parallelClass = new Demo.ParallelClass(this); this.plinqClass = new PLinqClass(this); this.awaitClass = new Demo.AwaitAsyncClass(this); this.atomicityClass = new Demo.AtomicityClass(this); this.readerWriterClass = new Demo.ReaderWriterLockSlimClass(this); this.spinLockClass = new Demo.InterlockedSpinLockClass(this); this.variableClass = new Demo.VariableCapturingClass(this); this.concurrentClass = new Demo.ConcurrentCollectionClass(this); this.Init(); }
private static void ParallelCheckCall() { //ParallelClass.CheckPerformanceArray(); ParallelClass.CheckPerformanceDbCall(); }