This feature is not supported on the Wolfram Cloud.

locks the variables vari with respect to parallel computation, evaluates expr, then releases the vari.


  • At most one instance of a critical section with the same lock variable is allowed to run concurrently on any parallel kernel.
  • Variables used as locks should not have a value in the master kernel.
Introduced in 2008
Translate this page: