I have small c program that use lot of cpu , this program compiled to exe , and I run it as a process from my c# gui.
When I want to run it parallel on all over my cpu cores ,I have 2 options.
I have 4 cpu cores.
Run this c exe from my c# as 4 process so my os seperate those process 1 for each core .
Edit my c code so it run 4 thread so os will seperate 1 thread for each core, and from c# I will run it as 1 process.
Which way will be faster?
Edit: those processes/ thread will run like 3-5 houres ,and dont need to communicate between anotger thread/ process.
All of this running on windows