How many threads AdminP is running?
AdminP正运行多少个线程。
Before it is used, the Barrier needs to know how many threads will be using it.
在使用之前,Barrier需要知道有多少线程将会使用它。
So, whether the code is buggy depends on how many threads can access the operation concurrently.
所以,代码是否有问题取决于有多少线程能够并发地访问这个操作。
应用推荐