.net - What SynchronizationContext does Task.ContinueWith use? -


Some overloads do not take synchronization contact. What do they use to schedule a new task?

Some surcharge of the work. Do not take a synchronization contact.

In fact, none of them takes a synchronization context , but some take a task scheduler .

Do they use to schedule new jobs?

Nobody! By default, the current scheduler is determined by the current scheduler ( TaskScheduler.Current ), which, when not called Task , this TaskScheduler. Default is . Therefore continuation thread is run on the thread from the pool. Threadpool does not have any related synchronization reference (unless you explicitly set it).


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -