Skip to main content

CriticalSection

CriticalSection[var,expr] acquires the lock var for parallel computation, evaluates expr, then releases the lock var.

CriticalSection[{var1,var2,…},expr] locks all variables vari simultaneously.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.