Intel® Cilk™ Plus uses a work-stealing model to achieve parallelism. An idle thread steals the continuation that is created by the keyword that spawns a new thread, so that the spawned function call and the continuation can execute in parallel.
To determine whether a bug in your application is caused by concurrency or whether it occurs within an algorithm, it is useful to serialize the execution of the application, so that work stealing does not occur. You can serialize the application dynamically, so you do not need to recompile or restart it.
When you enable serialization while the application is executing, the work that is already stolen but not yet finished continues to execute in parallel, but no new work stealing takes place. The program is fully serialized once the stolen work finishes.
To enable or disable serialization of an application that uses Intel® Cilk™ Plus:
Copyright © 2001-2011, Intel Corporation. All rights reserved.