I understand that the TPL does not necessarily create a new thread for every task in a parallel set, but does it always create at least one? eg:
private void MyFunc()
{
Task.Factory.StartNew(() =>
{
//do something that takes a while
});
DoSomethingTimely(); //is this line guaranteed to be hit immediately?
}
EDIT: To clarify: Yes, I mean is it guaranteed that the thread executing MyFunc()
is not going to be used to execute //do something that takes a while
.