This will block the thread until all other threads have called the method, then they are released all at once.
这么做会引起阻塞,当所有线程都调用了这个方法后,便会同时释放所有线程。
When one thread is executing a synchronized block, any thread waiting to enter that block is stalled.
当一个线程正在执行一个同步块时,任何等待进入该块的线程都将被阻塞。
Block the worker thread and wait for the response.
阻塞工作线程并等待响应。
应用推荐