Windows 操作系统上常用的有 CriticalSection、Event、Semaphore、Mutex,在 Linux 操作系统上有 mutex、semphore、read-write-lock、condition-variable