Ejemplo n.º 1
0
        public SelectStressRunner <T, TKParcela, TKCobranca> WaitAll()
        {
            _contratoTask.WaitAll();
            _contratoPeriodoTask.WaitAll();

            return(this);
        }
Ejemplo n.º 2
0
        public void Run()
        {
            var tasksInsertFull = new TaskManagerConcurrent(InserirItemDumb);
            var tasksInsert     = new TaskManagerConcurrent(InserirItem);
            var taskUpdates     = new TaskManagerConcurrent(UpdateItems);
            var taskDelete      = new TaskManagerConcurrent(DeleteItems);
            var taskSelects     = new TaskManagerConcurrent(SelectItems);

            tasksInsertFull.Start(_data.InsertsDumb.Count / 1000);

            tasksInsert.Start(_data.InsertsToManipulate.Count);
            tasksInsert.WaitAll();

            taskUpdates.Start(_data.Updates.Count);
            taskSelects.Start(_data.Selects.Count);
            taskDelete.Start(_data.Deletes.Count);

            tasksInsertFull.WaitAll();
            taskUpdates.WaitAll();
            taskSelects.WaitAll();
            taskDelete.WaitAll();
        }