is it possible to run methods in parallel? pls see sample below for full details.
void main()
{
RunMethod1(); //runs for 5 seconds
RunMethod2(); //runs for 5 seconds
}
normally the program would end after 10 seconds.
but i want the program to complete in 7 seconds.
basically i want to do something like this.
Time in Sec 1 2 3 4 5 6 7 8 9 10
RunMethod1 1 2 3 4 5
RunMethod2 1 2 3 4 5
so the methods are running in parallel from (3rd to the 5th second)
is this possible? if so how?
Thanks!