I'm developing a software which I need to make parallel tasks.
For example here is my task1
:
Task t1 = new Task(()=>
{
//Do Some Codes
});
And I have more tasks which have the same code as task1
:
Task t2 = new Task(()=>
{
//Do task1 codes
});
Task t3 = new Task(()=>
{
//Do task1 codes
});
t1.start();
t2.start();
t3.start();
I also have a timer so that I can check these tasks works and do the processes faster. But it won't change and they have the same time as one task.
Now I want to know how I can run parallel tasks and give me faster result.
Any help will be appreciated