このヘルプでは、COBOL、C#、VB.NET での同期機能の使い方について説明します。
COBOL の同期
*> Synchronize on an object's monitor, in this case
*> the current object
sync on self
*> The code here is synchronized
end-sync
C# の同期
// Synchronize on an object's monitor, in this case
// the current object
lock (this)
{
// The code here is synchronized
}
VB.NET の同期
' Synchronize on an object's monitor, in this case
' the current object
SyncLock (Me)
' The code here is synchronized
End SyncLock
これらの例の一部は、ハーディング大学コンピュータ サイエンス学部の Frank McCown 博士が作成したもので、クリエイティブ コモンズ ライセンスに基づいて使用が許可されています。