About Virtual CPUs

A

AWHK

I got 4 virtual CPUs on my computer (xeon processor) and I got this .NET
application that runs a lengthy processor intensive task.
I have noticed when I start two instances of the application (each one
running its lengthy processor intensive task) they use one virtual CPU each.

How can I implement this functionallity within one application ie. running
two lengthy tasks within one application using two CPUs. Do I use
appdomains, threading? Is it possible direct workload to virtual CPUs from
..NET?


andreas.w.h.k. :)
 
C

Cor Ligthert [MVP]

Andreas,

In addition to Kudzu, you can use threads (or pipe line processing) only if
the process is not depending from intermediate results, or it should be an
intermediate results that parallel can be obtain.

Most processes in a computer are sequential in there behaviour. In past I
have read a lot about optimistic multiprocessing, I don't see it now anymore
and assume that it is a stopped ideology. (It was a parallelized mainframe
computer approach)

Be however aware that beside your program there is standard a lot processed,
even if it is not a separate program, it is done by the OS or in separate
threads by the managed code.

However most of those processes take very few time, and therefore you will
not see them with your eyes in the taskmanager.

I hope that this gives some extra idea's

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top