开发者

VB.NET - Dimming an array of processes

开发者 https://www.devze.com 2023-01-13 09:42 出处:网络
Trying to dim a certain amount of process (determined by Environment.ProcessorCount) to run several processes which do not support multi-threading.

Trying to dim a certain amount of process (determined by Environment.ProcessorCount) to run several processes which do not support multi-threading. I have already Dim'd proinf(6) as Process.ProcessStartInfo because I have designe开发者_StackOverflow中文版d a queue for the processes and this encounters no errors.

Any help is appreciated!


Is this what you are after?

Dim parray(Environment.ProcessorCount) As Process
For i As Integer = 0 To parray.Length - 1
  parray(i) = New Process()
Next
0

精彩评论

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