在使用之前,Barrier需要知道有多少线程将会使用它。
Before it is used, the Barrier needs to know how many threads will be using it.
所以,代码是否有问题取决于有多少线程能够并发地访问这个操作。
So, whether the code is buggy depends on how many threads can access the operation concurrently.
一般而言,配置MPM包括告知apache怎样去控制有多少worker正在运行,它们是线程还是进程。
In general, configuring an MPM involves telling Apache how to control how many workers are running, whether they're threads or processes.
应用推荐