Intel® C++ Compiler 19.0 Developer Guide and Reference

Using Locks

Intel® Cilk™ Plus is a deprecated feature. Use OpenMP* or Intel® Threading Building Blocks instead. For more information see Migrate Your Application to use OpenMP* or Intel® TBB Instead of Intel® Cilk™ Plus.

You can use various synchronization mechanisms in the hardware or operating system.

The following lock terms and facts are useful:

Lock contention can create performance problems in parallel programs. Additionally, while locks can resolve data races, programs using locks are often non-deterministic. Avoiding locks whenever possible is recommended.

These problems (and others) are described in detail in the following sections.