Cooperative Execution of Parallel Tasks with Synchronization Constraints