Using tasks to perform multiple concurrent computations