Previous Topic Next topic Print topic


Synchronization - in COBOL and C#

C# COBOL
// Synchronize on an object's monitor, in this case
// the current object
lock (this)
{
    // The code here is synchronized
}
*> Synchronize on an object's monitor, in this case
*> the current object
sync on self
   *> The code here is synchronized
end-sync
Previous Topic Next topic Print topic