<分区>
Possible Duplicate:
What is thread safe or non thread safe in PHP
什么是线程安全的或不是线程安全的?
例如,PHP 中的 setlocale() 不是线程安全的:
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().
http://php.net/manual/en/function.setlocale.php
这实际上意味着什么?线程安全与否是好事吗?
在什么情况下您需要线程安全或非线程安全的解决方案来解决您的问题?