Click here to Skip to main content
15,889,992 members
Please Sign up or sign in to vote.
3.71/5 (3 votes)
See more:
Hi.

How can we write a program for a Core 2 due CPU ?
I mean, a program that divides the process between cores !

Thanks
Posted

Hi,

by using Threads. Read up MSDN on Thread, ThreadPool, BackgroundWorker classes.
And maybe have a look at http://www.albahari.com/threading/[^] and http://www.ddj.com/hpc-high-performance-computing/216500409[^].

:)

 
Share this answer
 
You can use multi-threading, but realize that the OS itself and the internal operations of .NET are already doing that. Also be aware that multi-threading for the sake of multi-threading may add complexity for no reason and cause your program to actually run slower.

 
Share this answer
 


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900