(Republishing, or using this info in a commercial product/website, is prohibited without permission. All other uses are permitted. If in doubt, please ask.)
Description:
This wait is when an SOS Task is entered into the queue for an SOS Node. The wait ends when the task either starts running or the enqueue times out.
(Books Online description: “Occurs when a task is started in a synchronous manner. Most tasks in SQL Server are started in an asynchronous manner, in which control returns to the starter immediately after the task request has been placed on the work queue.”)
Questions/comments on this wait type? Click here to send Paul an email, especially if you have any information to add to this topic.
Added in SQL Server version:
Pre-2005/2005
Removed in SQL Server version:
N/A
Extended Events wait_type value:
The map_key value in sys.dm_xe_map_values is 278 in 2008 and 2008 R2, 285 in 2012, and 292 in 2014 RTM. After 2014 RTM, you must check the DMV to get the latest value as some map_key values have changed in later builds.
Other information:
I have not seen this wait type be a noticeable contention point.
Known occurrences in SQL Server (list number matches call stack list):
- Starting a CLR task, which will either start running or timeout after 5 seconds
Abbreviated call stacks (list number matches known occurrences list):
- SOS_Task::PostWait+4d
SynchedTask::Wait+36
SOS_Node::EnqueueTaskSyncDirect+ec
SOS_OS::EnqueueTaskSync+4e
CHostTask::EnqueueTask+64
CHostTaskManager::CreateTask+9d
CHostTaskManagerWrapper::CreateTask+a2