Batch fork bomb? [duplicate]

这一生的挚爱 提交于 2019-11-29 03:56:44

%0 will never end, but it never creates more than one process because it instantly transfers control to the 2nd batch script (which happens to be itself).

But a Windows pipe creates a new process for each side of the pipe, in addition to the parent process. The parent process can't finish until each side of the pipe terminates. So the main program with a simple pipe will have 3 processes. You can see how the bomb quickly get's out of control if each side of the pipe recursively calls the parent batch!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!