开发者

Thread pool stack security issue

开发者 https://www.devze.com 2022-12-23 16:32 出处:网络
In a naive imple开发者_运维百科mentation of a thread pool, can a piece of code that is being executed read the data left by some previous code on the stack (if it was running on the same thread instan

In a naive imple开发者_运维百科mentation of a thread pool, can a piece of code that is being executed read the data left by some previous code on the stack (if it was running on the same thread instance)? Also, are there any other inherent security issues connected to thread pools?


Because all of the threads are running in the same process already, even if it were possible, it's not a security issue. Security boundaries are at the process level (well, technically, it does depend on your OS, but that's how it works in all the mainstream OSes).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号