Hi, i wanted to implement an example from the Cilk Plus User Guide: Page 37, Exception Handling, where they show, how the implicit sync in front of a try-block could limit the parallelism of the program. My code is as follows:
void mysleep(int a) {
sleep(a);
}
int main(int argc, char ** argv) {
cilk_spawn mysleep(5);
try {
cilk_spawn mysleep(5);
mysleep(5);
}
catch(int err) {
}
}
