![](/img/trans.png)
[英]Turning multithreading code with unlimited threads into multithreading code with max number of simultaneously running threads
[英]Is running a script in 5 powershell windows simultaneously, the same as multithreading with 5 threads?
我的目的是删除列表中的1000个项目。 我要从第一个Powershell窗口中的脚本中删除前20个项目,从第二个窗口中的同一列表中删除接下来的20个项目,依此类推。 我的问题是它们将异步执行吗? 与5个线程的多线程相同吗?
每个Powershell窗口都在其自己的进程中运行,因此可以,它们将异步运行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.