The use of locks to properly synchronize access to shared resources is sufficient to ensure that a multithreaded program works properly with a preemptive virtual machine.

  • 使用锁来正确同步共享资源的访问,就足以保证一个多线程程序在抢占式模型下正确工作。
目录 查词历史