我有8个PowerShell脚本。很少有人有依赖性。这意味着它们不能并行执行。他们应该被陆续执行。并行化powershell脚本执行
一些Powershell脚本没有依赖性,可以并行执行。
以下是依赖详细
Powershell scripts 1, 2, and 3 depend on nothing else Powershell script 4 depends on Powershell script 1 Powershell script 5 depends on Powershell scripts 1, 2, and 3 Powershell script 6 depends on Powershell scripts 3 and 4 Powershell script 7 depends on Powershell scripts 5 and 6 Powershell script 8 depends on Powershell script 5
我知道,通过手动硬编码的依赖性,可以解释的。但是可能会添加10个更多的PowerShell脚本,并且可能会添加它们之间的依赖关系。
有没有找到依赖关系的并行?如果是这样,请与我分享如何继续。
这不仅仅是一个答案,你让我思考并行性太严重。感谢您的杰出答案。 – Samselvaprabu 2012-02-04 03:18:40