Hi, I use this code.
var taskPaquetes =
new Task<ConsultaPaqueteConsolidadosSCTResponse>(() =>
paqueteAgent.ConsultaPaqueteConsolidadosSctResponse(planId, numeroLinea, auditoriaPadre,
out errorObtenerPaquetesAfiliacion));
var taskCantidadPaquetes =
new Task<List<Parametro>>(() =>
paqueteAgent.ObtenerCantidadMaximaPaquetes(auditoriaPadre, out errorCantidadPaquetes));
// Se inician los servicios
taskPaquetes.Start();
taskCantidadPaquetes.Start();
Task.WaitAll(taskPaquetes, taskCantidadPaquetes);
ThIS Code is parallell framework, so use all cores of the server, because task is a class of paralell framework...
Go to the complete details ...