Seeking solutions for handling exceptions thrown by PHP multi-threads
装睡不醒
装睡不醒 2020-08-21 14:02:13
0
0
852

Since I want to do a website monitoring, I need to use multi-threading, and I want to access the timeout during the execution process. I use try() to throw an exception and let the program continue to execute, but it does not succeed. But using a single thread is enough. I searched online and found the reason: because the exception thrown by the main thread cannot be executed in other threads. Now you have found the problem, but don’t know how to solve it? Please give me some advice.

装睡不醒
装睡不醒

reply all (0)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!