中文字幕av专区_日韩电影在线播放_精品国产精品久久一区免费式_av在线免费观看网站

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

What is the difference between page and block in operating system?

發布時間:2020-08-15 18:46:42 來源:ITPUB博客 閱讀:314 作者:路途中的人2012 欄目:建站服務器

What is the difference between pages and blocks? A block is the smallest unit of data that an operating system can either write to a file or read from a file.

What exactly is a page? Pages are used by some operating systems instead of blocks. A page is basically a virtual block. And, pages have a fixed size – 4K and 2K are the most commonly used sizes. So, the two key points to remember about pages is that they are virtual blocks and they have fixed sizes.

Why pages may be used instead of blocks Pages are used because they make processing easier when there are many storage devices, because each device may support a different block size. With pages the operating system can deal with just a fixed size page, rather than try to figure out how to deal with blocks that are all different sizes. So, pages act as sort of a middleman between operating systems and hardware drivers, which translate the pages to the appropriate blocks. But, both pages and blocks are used as a unit of data storage.

http://www.programmerinterview.com/index.php/database-sql/page-versus-block/

總結起來,也就是說,像磁盤這樣的設備之所以被稱為是塊設備,是因為其傳輸數據的基本單元是Block,即使你的目標數據只是文件中的一個字符,操作系統和驅動仍然會讀取整個塊,將你想要的目標數據給你,塊中剩余的數據則保存在一個特定的buffer/cache中。
而塊的大小在不同的操作系統上不一定是一樣的。
數據在磁盤和內存之間的傳輸是以塊的形式而不是用戶需要的特定字節,存儲在內存中的數據則是以頁的形式來進行管理,當然,匯編指令只知道字節地址~

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

霍城县| 博乐市| 乐至县| 七台河市| 招远市| 沁源县| 平塘县| 南通市| 高邑县| 乐至县| 长岭县| 甘泉县| 三河市| 永康市| 小金县| 顺平县| 丰顺县| 虹口区| 登封市| 石门县| 永仁县| 镇雄县| 旬阳县| 安宁市| 巴青县| 阳西县| 邵阳市| 永顺县| 平江县| 四平市| 台中市| 洛扎县| 邹城市| 大洼县| 浮山县| 恭城| 胶南市| 桦川县| 阜平县| 连平县| 商洛市|