A critical section object protects a section of code from being accessed by more than one thread.

  • 临界区对象使得某一时刻只能有一个线程能访问这段临界代码。
目录 查词历史