Parallel Programming master course exercise