Multiple Guest running the same method in parallel

Sep 28, 2010 at 9:08 AM

I am a novice programmer using the vix api to develop a tool that could open multiple guests and run a method say "test(VMWareVirtualMachine vm, String Path)". This method basically executes a script and copies a few files from the each guest.  I am able run this method perfectly fine when i use only one guest. I am interested in knowing what i would need to do inorder to run this method parallel in both these vm. Would i need to create my own thread to do this or is there a facility provided by VMWareTasks? Would be great if you could provide some sample code for the same. Thanks.

Sep 29, 2010 at 3:55 PM

Since VMWareTasks is synchronous, you need to create threads on your own. Then it's like any other operation, two threads give you parallel processing. The RemoteInstall project does this by using a thread pool for example. I am also writing an article for a Russian magazine that tries to use the .NET threadpool, I might have some simpler source code to show in a couple of weeks too.