阅读背景:

在Java中可以接受使用Thread#stop()来杀死正在运行的线程吗?

来源:互联网 

Regrettably there is no way to specify a timeout when using a regular expression on a String in Java. So if you have no strict control over what patterns get applied to which input, you might end up having threads that consume a lot of CPU while endlessly trying to match (not so well designed) patterns to (malicious?) input.Regrettably there is no way to specify a timeou




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: