Motivation for Worksharing
Most programs spend lots of time in loops
What if we didn’t have worksharing constructs
- Start parallel region
- Write code to distribute the iterations of the loop based on the thread id
Gets tedious even for simple code fragments