YES. Function3()
waits untill unless Function2()
execution is Completed.
if you want to invoke them independently you can use Multi-Threading
concept.
EDIT: as suggested in Comments using Task
is much better than Thread
as it is a higher level
concept.
Task Vs Thread
Try This to invoke them Independently:
using System.Threading.Tasks;
static void Main(String[] args)
{
Task t1 = new Task(Function2);
Task t2 = new Task(Function3);
t1.Start();
t2.Start();
}
here we can not guarantee how the execution flow goes on.because they runindependently.