亚洲激情专区-91九色丨porny丨老师-久久久久久久女国产乱让韩-国产精品午夜小视频观看

溫馨提示×

溫馨提示×

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

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

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

景洪市| 尼木县| 临澧县| 沙雅县| 天镇县| 清河县| 峨山| 东源县| 嘉鱼县| 哈尔滨市| 霞浦县| 科技| 微山县| 乌拉特中旗| 宁远县| 大宁县| 墨脱县| 克什克腾旗| 峨边| 莱阳市| 阿勒泰市| 文成县| 正安县| 西贡区| 桦川县| 漳浦县| 江山市| 聊城市| 栾川县| 建阳市| 临海市| 锡林浩特市| 丹阳市| 洪洞县| 咸阳市| 小金县| 汝阳县| 探索| 黎川县| 呼和浩特市| 伽师县|