Virtualization As a Way To Multi-Task

This is for discussing general topics about how to use VirtualBox.
Post Reply
sflaum@flauminc.com
Posts: 1
Joined: 25. Nov 2009, 21:00
Primary OS: MS Windows Vista
VBox Version: OSE other
Guest OSses: Windows

Virtualization As a Way To Multi-Task

Post by sflaum@flauminc.com »

I have a long-running (i.e. several hours), compute-bound program which is now mostly single threaded.It would be easy to partition the processing into parallel tasks. In theory, I could then run each partition simultaneously on a different processor. Unfortunately, much of the processing is done in Excel and you cannot run multiple instances of Excel in one instance of Windows.

Therefore I'm thinking of running parallel tasks in different virtual machines. One master task would create several virtual machines and parcel out the work to them, plus merge the results. I suppose the master task could start the subordinate virtual machines, and the processing program (including an instance of Excel) could start when each machine boots. Also, I suppose I could pass data back and forth in files; the volume of data to be shared is moderate and the tasks could poll the disk. My app is written in VB6 and VB 2008.

How practical would this be -- i.e. how difficult to program, and would it use the multiple cores effectively?

Thanks.
MarkCranness
Volunteer
Posts: 875
Joined: 10. Oct 2009, 06:27
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows Server 2008 R2; Ubuntu 11.04; Windows 2000 Server; Windows XP

Re: Virtualization As a Way To Multi-Task

Post by MarkCranness »

sflaum@flauminc.com wrote:How practical would this be -- i.e. how difficult to program, and would it use the multiple cores effectively?
Honestly, I would say that programming a master task around virtual machines around an Excel program to do compute intensive tasks would be creating a bigger mess around what must already be a big mess.

I would re-write the Excel in a proper programming language. Choose your programming language:
http://gmarceau.qc.ca/blog/2009/05/spee ... ty-of.html
http://shootout.alioth.debian.org/u32q/fun.php?d=
http://shootout.alioth.debian.org/
 
Post Reply