To guarantee the thread safety of the Queue, all operations must be done through the wrapper returned by the Synchronized method.

 
  • 若要保证Queue的线程安全,则必须通过由Synchronized方法返回的包装来执行所有操作。
今日热词
目录 附录 查词历史