0
我想更好地瞭解當Linux上的Apache在進程前叉模型中接收到HTTP請求時發生了什麼。Linux和i18n上的Apache:產卵進程或線程?
比方說,我們有20個Apache子進程等待。
當我收到一個HTTP請求,是這樣說,1個兒童進程將被選擇來處理請求,並且直到第一個完成這個過程不會處理來自其他用戶的另一個請求?
我問,因爲這指明瞭PHP限制問題:
The locale information is maintained per process, not per thread.
If you are running PHP on a multithreaded server API like IIS or Apache
on Windows, you may experience sudden changes in locale settings while a script
is running, though the script itself never called setlocale(). This happens due
to other scripts running in different threads of the same process at the same
time, changing the process-wide locale using setlocale().