C# BeginInvoke to use or not to use -


i want use call function b function a avoid blocking function a. thought begininvoke seems solution.

but came point of asking myself, need this? invoking asynchronous thread wouldn't longer executing function calling function b function a? happen if function looping faster execution of function b?

edit:

the use of trace debug function having least impact on the caller.

i kind of lost, appreciate help

thank much

making asynchronous call makes sense if call takes considerable time execute.

if method call simple , returns, quicker call create thread , start it.

if calling method in loop, should consider using asparallel method it. throttle number of threads used work, instead of blindly firing off lot of threads.


Comments