Granularity in parallel computing