开发者

Child Process VB.NET

My aim is to create a child processes which will execute in parallel the p开发者_JS百科iece of VB.NET code say a function. I want to do it specifically using processes and not threads. Please suggest the ways to do this?


You may take a look at the Process.Start method. Obviously the piece of code you would like to be executed in a separate process should reside in this process. It cannot reside in the caller process.

Another possibility is to create a new AppDomain instead of process.


Your best option is to use the Process class with the Start method.

Check the ProcessStartInfo class to see what you options you can use to start a process.

However, the process will be separate - you will not have control over it and it cannot be a "sub-process". If you need more control, you should reconsider using threads.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜