老熟女激烈的高潮_日韩一级黄色录像_亚洲1区2区3区视频_精品少妇一区二区三区在线播放_国产欧美日产久久_午夜福利精品导航凹凸

重慶分公司,新征程啟航

為企業提供網站建設、域名注冊、服務器等服務

Scheduler&Task&Worker&Thread&Request&Session&ConnectionOFMSSQL

MSSQL一直以來被人們認為簡單、好學,但等到大家掌握了入門操作,深入理解起來又覺得非常的“擰巴”,尤其是對用慣了Oracle的同學來說,究其根本原因,無非是MSSQL引入和暴露了太多的概念、細節和理論層,而Oracle恰恰屏蔽了這些,比如下面講到的這些概念,即使是使用很久MSSQL的同學來說,也未必就真理解的正確,下面這段文字,很好的解釋了MSSQL中的幾個基本概念:

Scheduler (SOS Scheduler)– the object that manages thread scheduling in SQL Server and allows threads to be exposed to the CPU (described in sys.dm_os_schedulers). This is the all-powerful but benign and graceful master whom everyone abides.  He does not control things but lets the workers work with each other and relies on their cooperation (co-operative scheduling mode). Each scheduler /master (one per logical CPU) accepts new tasks and hands them off to workers. SOS Scheduler allows one worker at a time to be exposed to the CPU.


Task –a task represents the work that needs to be performed (sys.dm_os_tasks). A task contains one of the following requests: query request (RPC event or Language event), a prelogin request (prelogin event),  a login request (connect event), a logout request (disconnect event), a query cancellation request (an Attention event), a bulk load request (bulk load event), a distributed transaction request (transaction manager event). A task is what the Master is about – it is what defines its existence. Note these are tracked at the SOS scheduler layer (thus dm_OS_tasks)


Worker (worker thread) – This is the logical SQL Server representation of a thread (think of it as a wrapper on top of the OS thread). It is a structure within the Scheduler which maintains SQL Server-specific information about what a worker thread does. sys.dm_os_workers. Workers are the humble servants who carry out the task assigned to them by the Master (scheduler).


Thread – this is the OS thread sys.dm_os_threads that is created via calls like CreateThread()/_beginthreadex(). A Worker is mapped 1-to-1 to a Thread.


Request is the logical representation of a query request made from the client application to SQL Server (sys.dm_exec_requests). This query request has been assigned to a task that the scheduler hands off to a worker to process. This represents query requests as well as system thread operations (like checkpoint, log writer, etc); you will not find login, logouts, attentions and the like here. Also, note that this is a representation at the SQL execution engine level (thus dm_EXEC_requests) not at the SOS Scheduler layer.


Sessions – when the client application connects to SQL Server the two sides establish a "session" on which to exchange information. Strictly speaking a session is not the same as the underlying physical connection, it is a SQL Server logical representation of a connection. But for practical purposes, you can think of this as being a connection (session =~ connection). See sys.dm_exec_sessions. This is the old SPID that existed in SQL Server 2000 and earlier. You may sometimes notice a single session repeating multiple times in a DMV output. This happens because of parallel queries. A parallel query uses the same session to communicate with the client, but on the SQL Server side multiple worker (threads) are assigned to service this request. So if you see multiple rows with the same session ID, know that the query request is being serviced by multiple threads.


Connections – this is the actual physical connection established at the lower protocol level with all of its characteristics sys.dm_exec_connections . There is a 1:1 mapping between a Session and a Connection.tr

創新互聯公司于2013年成立,是專業互聯網技術服務公司,擁有項目網站建設、成都網站設計網站策劃,項目實施與項目整合能力。我們以讓每一個夢想脫穎而出為使命,1280元懷化做網站,已為上家服務,為懷化各地企業和個人服務,聯系電話:18982081108


當前題目:Scheduler&Task&Worker&Thread&Request&Session&ConnectionOFMSSQL
本文URL:http://www.xueling.net.cn/article/ghhdcc.html

其他資訊

在線咨詢
服務熱線
服務熱線:028-86922220
TOP
主站蜘蛛池模板: 日韩a级作爱片一二三区免费观看 | 国产一级做a爰片在线看免费 | 国产亚洲人成a在线v网站 | 国产成人麻豆精品午夜在线 | 久草网av| 91插插插影 | 伦乱天堂 | 日本免费一区二区三区最新vr | 欧美大片首页欧美大片首页 | 黄色片ww | 亚洲激情四射视频中文字幕久久 | 久久草av | 白嫩人妻娇喘欲仙欲死 | 精品国产一区二区三区2021 | 国产亚洲人成a在线v网站 | 遮天在哪个软件可以免费阅读 | av大片在线看 | 国偷自产视频一区二区久 | 亚洲精品国产剧情久久9191 | 天天拍夜夜添久久精品 | 国产无线乱码一区二三区 | 区久久AAA片69亚洲 | 无码人妻一区二区三区一 | 综合自拍 | 久久超碰97中文字幕 | 东方800av | 国产一级伦理片 | 国产精品自在线拍国产手青青机版 | 亚洲精品沙发午睡系列 | 综合视频在线 | 91在线观看免费视频 | 午夜福利在线观看老司机 | 国产麻花豆剧传媒精品mv在线 | 四虎影院在线观看av | 亚洲精品一二 | 狠狠干天天草 | 国产99久久久久久免费看 | 国产亚洲日韩在线一区二区三区 | 中文字幕一区精品 | 亚洲熟女精品中文字幕 | BBWBBW高潮喷水 |