| 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 |