grapesjs-clot
Version:
Free and Open Source Web Builder Framework
110 lines • 76.2 kB
JSON
{
"id": "6262b61b3beec065d67999d0",
"type": "normal",
"department": "資訊工程學系",
"subject": "作業系統",
"title": "Yao's Test Note",
"headerEmail": "allen3325940072@gmail.com",
"headerName": "Yao",
"authorEmail": [
"allen3325940072@gmail.com"
],
"authorName": [
"Yao"
],
"managerEmail": "allen3325940072@gmail.com",
"professor": "馬尚彬",
"school": "國立臺灣海洋大學",
"exitFolders": null,
"likeCount": 30,
"favoriteCount": 10,
"unlockCount": 7,
"downloadable": true,
"commentCount": 0,
"comments": [
{
"id": "6296c9deff5a3e3fc577326e",
"author": "Ting",
"email": "00853129@email.ntou.edu.tw",
"content": "浴血黑幫豪讚:D猛毒豪胖:D",
"likeCount": 0,
"liker": [],
"referenceNotesURL": [
"a",
"b",
"c"
],
"floor": 0,
"date": "2022-06-01T10:12:08.749+08:00",
"reference": false,
"best": false
},
{
"id": "6296cb00ff5a3e3fc577334a",
"author": "Ting",
"email": "00853129@email.ntou.edu.tw",
"content": "測試拿來被刪掉的V3",
"likeCount": 0,
"liker": [],
"referenceNotesURL": [
"a",
"b",
"c"
],
"floor": 1,
"date": "2022-06-01T10:13:15.731+08:00",
"reference": false,
"best": false
}
],
"price": 50,
"quotable": false,
"tag": [
"tag1",
"tag2"
],
"hiddenTag": [
"hiddenTag1",
"hiddenTag2"
],
"version": [
{
"id": "6262b61b3beec065d67999d0",
"name": "default",
"date": "2022-03-06T14:53:08.137+00:00",
"content": {
"mycustom-html": "<div id=\"iq9w\"><b id=\"iqcs\">Virtual Memory</b><b></b></div><div id=\"iq1l\" class=\"gjs-row\"><div id=\"ib8l\" class=\"gjs-cell\"><div id=\"ivqa3\"><span><b>1. 主要目的:</b><br/></span>允許process size在超過physical memory free space size之下,仍能執行。That is<span id=\"i3np5\"></span>, <span id=\"ighb3\">logical memory size不會受physical size之限制</span><font color=\"#f90000\" id=\"iheww\"><br id=\"ikl0j\"/></font><span id=\"iltsi\">2. 觀念:<br/></span>即是<span id=\"ilvz3\">"Partition loading"</span> process部分內容,process都可執行(even 不載入也可執行)<br/>- 早期: Dynamic loading觀念<br/>- 現代: OS提供Virtual Memory特性<br/><b>3. 其他附帶好處:<br/></b>a. 若process只載入部分即可執行,那表示同一時間可以載入的process數目會變多 => multiprogramming degree上升 => cpu utilization 相對高<br/>b. less I/O Time<br/><span id=\"iugp6\">(因為載入少,I/O transfer time會少)<br/></span>c. Memory utilization 相對高<br/>d. programmer無須煩惱process size太大之問題<br/>e. Copy-on-write技術speed up process creation<br/><br/></div><div id=\"igdof\"><span id=\"iwaj-2\" draggable=\"true\">實現Virtual Memory的技術之一: Demand Paging:<br/>1. Def: <br id=\"if0ur-2\" draggable=\"true\"/></span>架構在前面的Page Memory Management基礎<br/>差別: <br/><span id=\"ib8a3\">- process執行之前,無需事先載入全部的Pages,而是載入部分所需之Pages,即可執行</span><font color=\"#f90000\"><br/></font><span id=\"iztmh\">(也可以不載入任何Page即可執行,此為"pure demand paging",若事先載入猜測的Pages,叫做"prepaging")<br/></span><span id=\"iltsi-2\" draggable=\"true\"><span id=\"iq9y6\">-</span><b draggable=\"true\" id=\"ix7uv\"> </b><span draggable=\"true\" id=\"iy7pq\">當process執行,若所需Page皆在Memory,則一切正常無誤<br/></span><span draggable=\"true\" id=\"ixhbv\">- 但若process企圖存取不再Memory中之Page,則產生Page fault,then OS必須處裡,將miss page載入Memory from Disk後,process才可往下執行<br/><b id=\"ijwh1\">2. 因此:</b></span><br id=\"ii6fs-2\" draggable=\"true\"/></span>必須有個機制區分那些pages在or不在Memory中,故page table會有一個欄位: <span id=\"i8xpi\">valid-Invalid Bit</span></div></div><div id=\"iukp\" class=\"gjs-cell\"><img id=\"ibvfc\" src=\"https://2.bp.blogspot.com/-n-_qs81sDyo/WZ7r0VY7bkI/AAAAAAABVX4/ZPLIVGyddkISiN8BOL3_2La-7UB0Bc9EACLcBGAs/s1600/9_01_VirtualMemoryLarger.jpg\"/></div></div>",
"mycustom-components": "[{\"type\":\"text\",\"attributes\":{\"id\":\"iq9w\"},\"components\":[{\"tagName\":\"b\",\"type\":\"text\",\"attributes\":{\"id\":\"iqcs\"},\"components\":[{\"type\":\"textnode\",\"content\":\"Virtual Memory\"}]},{\"tagName\":\"b\",\"type\":\"text\"}]},{\"name\":\"Row\",\"droppable\":\".gjs-cell\",\"resizable\":{\"tl\":0,\"tc\":0,\"tr\":0,\"cl\":0,\"cr\":0,\"bl\":0,\"br\":0,\"minDim\":1},\"classes\":[{\"name\":\"gjs-row\",\"private\":1}],\"attributes\":{\"id\":\"iq1l\"},\"components\":[{\"name\":\"Cell\",\"draggable\":\".gjs-row\",\"resizable\":{\"tl\":0,\"tc\":0,\"tr\":0,\"cl\":0,\"cr\":1,\"bl\":0,\"br\":0,\"minDim\":1,\"bc\":0,\"currentUnit\":1,\"step\":0.2},\"classes\":[{\"name\":\"gjs-cell\",\"private\":1}],\"attributes\":{\"id\":\"ib8l\"},\"components\":[{\"type\":\"text\",\"attributes\":{\"id\":\"ivqa3\"},\"components\":[{\"tagName\":\"span\",\"type\":\"text\",\"components\":[{\"tagName\":\"b\",\"type\":\"text\",\"components\":[{\"type\":\"textnode\",\"content\":\"1. 主要目的:\"}]},{\"tagName\":\"br\",\"void\":true}]},{\"type\":\"textnode\",\"content\":\"允許process size在超過physical memory free space size之下,仍能執行。That is\"},{\"tagName\":\"span\",\"attributes\":{\"id\":\"i3np5\"}},{\"type\":\"textnode\",\"content\":\", \"},{\"tagName\":\"span\",\"type\":\"text\",\"attributes\":{\"id\":\"ighb3\"},\"components\":[{\"type\":\"textnode\",\"content\":\"logical memory size不會受physical size之限制\"}]},{\"tagName\":\"font\",\"attributes\":{\"color\":\"#f90000\",\"id\":\"iheww\"},\"components\":[{\"tagName\":\"br\",\"void\":true,\"attributes\":{\"id\":\"ikl0j\"}}]},{\"tagName\":\"span\",\"type\":\"text\",\"attributes\":{\"id\":\"iltsi\"},\"components\":[{\"type\":\"textnode\",\"content\":\"2. 觀念:\"},{\"tagName\":\"br\",\"void\":true}]},{\"type\":\"textnode\",\"content\":\"即是\"},{\"tagName\":\"span\",\"type\":\"text\",\"attributes\":{\"id\":\"ilvz3\"},\"components\":[{\"type\":\"textnode\",\"content\":\"\\\"Partition loading\\\"\"}]},{\"type\":\"textnode\",\"content\":\" process部分內容,process都可執行(even 不載入也可執行)\"},{\"tagName\":\"br\",\"void\":true},{\"type\":\"textnode\",\"content\":\"- 早期: Dynamic loading觀念\"},{\"tagName\":\"br\",\"void\":true},{\"type\":\"textnode\",\"content\":\"- 現代: OS提供Virtual Memory特性\"},{\"tagName\":\"br\",\"void\":true},{\"tagName\":\"b\",\"type\":\"text\",\"components\":[{\"type\":\"textnode\",\"content\":\"3. 其他附帶好處:\"},{\"tagName\":\"br\",\"void\":true}]},{\"type\":\"textnode\",\"content\":\"a. 若process只載入部分即可執行,那表示同一時間可以載入的process數目會變多 => multiprogramming degree上升 => cpu utilization 相對高\"},{\"tagName\":\"br\",\"void\":true},{\"type\":\"textnode\",\"content\":\"b. less I/O Time\"},{\"tagName\":\"br\",\"void\":true},{\"tagName\":\"span\",\"type\":\"text\",\"attributes\":{\"id\":\"iugp6\"},\"components\":[{\"type\":\"textnode\",\"content\":\"(因為載入少,I/O transfer time會少)\"},{\"tagName\":\"br\",\"void\":true}]},{\"type\":\"textnode\",\"content\":\"c. Memory utilization 相對高\"},{\"tagName\":\"br\",\"void\":true},{\"type\":\"textnode\",\"content\":\"d. programmer無須煩惱process size太大之問題\"},{\"tagName\":\"br\",\"void\":true},{\"type\":\"textnode\",\"content\":\"e. Copy-on-write技術speed up process creation\"},{\"tagName\":\"br\",\"void\":true},{\"tagName\":\"br\",\"void\":true}]},{\"type\":\"text\",\"chooser\":\"DxkNb\",\"attributes\":{\"id\":\"igdof\"},\"components\":[{\"tagName\":\"span\",\"type\":\"text\",\"attributes\":{\"id\":\"iwaj-2\",\"draggable\":\"true\"},\"components\":[{\"type\":\"textnode\",\"content\":\"實現Virtual Memory的技術之一: Demand Paging:\"},{\"tagName\":\"br\",\"void\":true},{\"type\":\"textnode\",\"content\":\"1. Def: \"},{\"tagName\":\"br\",\"type\":\"default\",\"void\":true,\"attributes\":{\"id\":\"if0ur-2\",\"draggable\":\"true\"}}]},{\"type\":\"textnode\",\"content\":\"架構在前面的Page Memory Management基礎\"},{\"tagName\":\"br\",\"void\":true},{\"type\":\"textnode\",\"content\":\"差別: \"},{\"tagName\":\"br\",\"void\":true},{\"tagName\":\"span\",\"type\":\"text\",\"attributes\":{\"id\":\"ib8a3\"},\"components\":[{\"type\":\"textnode\",\"content\":\"- process執行之前,無需事先載入全部的Pages,而是載入部分所需之Pages,即可執行\"}]},{\"tagName\":\"font\",\"attributes\":{\"color\":\"#f90000\"},\"components\":[{\"tagName\":\"br\",\"void\":true}]},{\"tagName\":\"span\",\"type\":\"text\",\"attributes\":{\"id\":\"iztmh\"},\"components\":[{\"type\":\"textnode\",\"content\":\"(也可以不載入任何Page即可執行,此為\\\"pure demand paging\\\",若事先載入猜測的Pages,叫做\\\"prepaging\\\")\"},{\"tagName\":\"br\",\"void\":true}]},{\"tagName\":\"span\",\"type\":\"text\",\"attributes\":{\"id\":\"iltsi-2\",\"draggable\":\"true\"},\"components\":[{\"tagName\":\"span\",\"type\":\"text\",\"chooser\":\"4PuFJ\",\"attributes\":{\"id\":\"iq9y6\"},\"components\":[{\"type\":\"textnode\",\"content\":\"-\"}]},{\"tagName\":\"b\",\"type\":\"text\",\"attributes\":{\"draggable\":\"true\",\"id\":\"ix7uv\"},\"components\":[{\"type\":\"textnode\",\"content\":\" \"}]},{\"tagName\":\"span\",\"type\":\"text\",\"attributes\":{\"draggable\":\"true\",\"id\":\"iy7pq\"},\"components\":[{\"type\":\"textnode\",\"content\":\"當process執行,若所需Page皆在Memory,則一切正常無誤\"},{\"tagName\":\"br\",\"void\":true}]},{\"tagName\":\"span\",\"type\":\"text\",\"attributes\":{\"draggable\":\"true\",\"id\":\"ixhbv\"},\"components\":[{\"type\":\"textnode\",\"content\":\"- 但若process企圖存取不再Memory中之Page,則產生Page fault,then OS必須處裡,將miss page載入Memory from Disk後,process才可往下執行\"},{\"tagName\":\"br\",\"void\":true},{\"tagName\":\"b\",\"type\":\"text\",\"chooser\":\"3LTHQ\",\"attributes\":{\"id\":\"ijwh1\"},\"components\":[{\"type\":\"textnode\",\"content\":\"2. 因此:\"}]}]},{\"tagName\":\"br\",\"type\":\"default\",\"void\":true,\"attributes\":{\"id\":\"ii6fs-2\",\"draggable\":\"true\"}}]},{\"type\":\"textnode\",\"content\":\"必須有個機制區分那些pages在or不在Memory中,故page table會有一個欄位: \"},{\"tagName\":\"span\",\"type\":\"text\",\"attributes\":{\"id\":\"i8xpi\"},\"components\":[{\"type\":\"textnode\",\"content\":\"valid-Invalid Bit\"}]}]}]},{\"name\":\"Cell\",\"draggable\":\".gjs-row\",\"resizable\":{\"tl\":0,\"tc\":0,\"tr\":0,\"cl\":0,\"cr\":1,\"bl\":0,\"br\":0,\"minDim\":1,\"bc\":0,\"currentUnit\":1,\"step\":0.2},\"classes\":[{\"name\":\"gjs-cell\",\"private\":1}],\"attributes\":{\"id\":\"iukp\"},\"components\":[{\"type\":\"image\",\"attributes\":{\"id\":\"ibvfc\",\"src\":\"https://2.bp.blogspot.com/-n-_qs81sDyo/WZ7r0VY7bkI/AAAAAAABVX4/ZPLIVGyddkISiN8BOL3_2La-7UB0Bc9EACLcBGAs/s1600/9_01_VirtualMemoryLarger.jpg\"}}]}]}]",
"mycustom-assets": "[{\"type\":\"image\",\"src\":\"https://2.bp.blogspot.com/-n-_qs81sDyo/WZ7r0VY7bkI/AAAAAAABVX4/ZPLIVGyddkISiN8BOL3_2La-7UB0Bc9EACLcBGAs/s1600/9_01_VirtualMemoryLarger.jpg\",\"unitDim\":\"px\",\"height\":0,\"width\":0},{\"type\":\"image\",\"src\":\"http://placehold.it/350x250/459ba8/fff/image2.jpg\",\"unitDim\":\"px\",\"height\":350,\"width\":250},{\"type\":\"image\",\"src\":\"http://placehold.it/350x250/79c267/fff/image3.jpg\",\"unitDim\":\"px\",\"height\":350,\"width\":250},{\"type\":\"image\",\"src\":\"http://placehold.it/350x250/79c267/fff/image3.jpg\",\"unitDim\":\"px\",\"height\":350,\"width\":250}]",
"mycustom-css": "* { box-sizing: border-box; } body {margin: 0;}#iq9w{padding:10px;float:none;display:block;align-items:stretch;height:65px;font-size:30px;text-align:center;}.gjs-row{display:table;padding-top:10px;padding-right:10px;padding-bottom:10px;padding-left:10px;width:100%;}.gjs-cell{width:8%;display:table-cell;height:75px;}#iqcs{text-align:center;}#ibvfc{color:black;}#ivqa3{padding:10px;margin:0 0 0 0;top:-24.5em;position:relative;}#igdof{padding:10px;position:relative;top:-24.5em;}#iltsi{border-color:rgba(229,231,235,var(--tw-border-opacity));--tw-border-opacity:1;--tw-shadow:0 0 #0000;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59, 130, 246, 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;font-weight:bolder;}#iwaj-2{border-color:rgba(229,231,235,var(--tw-border-opacity));--tw-border-opacity:1;--tw-shadow:0 0 #0000;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59, 130, 246, 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;font-weight:bolder;}#if0ur-2{border-color:rgba(229,231,235,var(--tw-border-opacity));--tw-border-opacity:1;--tw-shadow:0 0 #0000;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59, 130, 246, 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;}#iltsi-2{border-color:rgba(229,231,235,var(--tw-border-opacity));--tw-border-opacity:1;--tw-shadow:0 0 #0000;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59, 130, 246, 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;}#ii6fs-2{border-color:rgba(229,231,235,var(--tw-border-opacity));--tw-border-opacity:1;--tw-shadow:0 0 #0000;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59, 130, 246, 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;}#iheww{border-color:rgba(229,231,235,var(--tw-border-opacity));--tw-border-opacity:1;--tw-shadow:0 0 #0000;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59, 130, 246, 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;}#ikl0j{border-color:rgba(229,231,235,var(--tw-border-opacity));--tw-border-opacity:1;--tw-shadow:0 0 #0000;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59, 130, 246, 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;}#ighb3{color:red;}#ilvz3{color:red;}#iugp6{color:#509ae3;}#iztmh{color:#509ae3;}#i8xpi{color:#ff0000;}#ib8a3{color:#f70000;}#iy7pq{color:#f20000;}#ixhbv{color:red;}#ijwh1{color:black;}@media (max-width: 768px){.gjs-cell{width:100%;display:block;}}",
"mycustom-styles": "[{\"selectors\":[\"#iq9w\"],\"style\":{\"padding\":\"10px\",\"float\":\"none\",\"__p\":false,\"display\":\"block\",\"align-items\":\"stretch\",\"height\":\"65px\",\"font-size\":\"30px\",\"text-align\":\"center\"}},{\"selectors\":[{\"name\":\"gjs-row\",\"private\":1}],\"style\":{\"display\":\"table\",\"padding-top\":\"10px\",\"padding-right\":\"10px\",\"padding-bottom\":\"10px\",\"padding-left\":\"10px\",\"width\":\"100%\"}},{\"selectors\":[{\"name\":\"gjs-cell\",\"private\":1}],\"style\":{\"width\":\"100%\",\"display\":\"block\"},\"mediaText\":\"(max-width: 768px)\",\"atRuleType\":\"media\"},{\"selectors\":[\"gjs-cell30\"],\"style\":{\"width\":\"100%\",\"display\":\"block\"},\"mediaText\":\"(max-width: 768px)\",\"atRuleType\":\"media\"},{\"selectors\":[\"gjs-cell70\"],\"style\":{\"width\":\"100%\",\"display\":\"block\"},\"mediaText\":\"(max-width: 768px)\",\"atRuleType\":\"media\"},{\"selectors\":[{\"name\":\"gjs-cell\",\"private\":1}],\"style\":{\"width\":\"8%\",\"display\":\"table-cell\",\"height\":\"75px\"}},{\"selectors\":[\"#iqcs\"],\"style\":{\"text-align\":\"center\",\"__p\":false}},{\"selectors\":[\"#ibvfc\"],\"style\":{\"color\":\"black\"}},{\"selectors\":[\"#ivqa3\"],\"style\":{\"padding\":\"10px\",\"height\":\"\",\"__p\":false,\"margin\":\"0 0 0 0\",\"margin-top\":\"\",\"margin-right\":\"\",\"margin-bottom\":\"\",\"margin-left\":\"\",\"top\":\"-24.5em\",\"right\":\"\",\"left\":\"\",\"position\":\"relative\",\"color\":\"\"}},{\"selectors\":[\"#igdof\"],\"style\":{\"padding\":\"10px\",\"position\":\"relative\",\"__p\":false,\"top\":\"-24.5em\"}},{\"selectors\":[\"#iltsi\"],\"style\":{\"border-color\":\"rgba(229,231,235,var(--tw-border-opacity))\",\"--tw-border-opacity\":\"1\",\"--tw-shadow\":\"0 0 #0000\",\"--tw-ring-inset\":\"var(--tw-empty, )\",\"--tw-ring-offset-width\":\"0px\",\"--tw-ring-offset-color\":\"#fff\",\"--tw-ring-color\":\"rgba(59, 130, 246, 0.5)\",\"--tw-ring-offset-shadow\":\"0 0 #0000\",\"--tw-ring-shadow\":\"0 0 #0000\",\"font-weight\":\"bolder\"}},{\"selectors\":[\"#iq1l\"],\"style\":{\"color\":\"\",\"__p\":true}},{\"selectors\":[\"#iwaj-2\"],\"style\":{\"border-color\":\"rgba(229,231,235,var(--tw-border-opacity))\",\"--tw-border-opacity\":\"1\",\"--tw-shadow\":\"0 0 #0000\",\"--tw-ring-inset\":\"var(--tw-empty, )\",\"--tw-ring-offset-width\":\"0px\",\"--tw-ring-offset-color\":\"#fff\",\"--tw-ring-color\":\"rgba(59, 130, 246, 0.5)\",\"--tw-ring-offset-shadow\":\"0 0 #0000\",\"--tw-ring-shadow\":\"0 0 #0000\",\"font-weight\":\"bolder\"}},{\"selectors\":[\"#if0ur-2\"],\"style\":{\"border-color\":\"rgba(229,231,235,var(--tw-border-opacity))\",\"--tw-border-opacity\":\"1\",\"--tw-shadow\":\"0 0 #0000\",\"--tw-ring-inset\":\"var(--tw-empty, )\",\"--tw-ring-offset-width\":\"0px\",\"--tw-ring-offset-color\":\"#fff\",\"--tw-ring-color\":\"rgba(59, 130, 246, 0.5)\",\"--tw-ring-offset-shadow\":\"0 0 #0000\",\"--tw-ring-shadow\":\"0 0 #0000\"}},{\"selectors\":[\"#iltsi-2\"],\"style\":{\"border-color\":\"rgba(229,231,235,var(--tw-border-opacity))\",\"--tw-border-opacity\":\"1\",\"--tw-shadow\":\"0 0 #0000\",\"--tw-ring-inset\":\"var(--tw-empty, )\",\"--tw-ring-offset-width\":\"0px\",\"--tw-ring-offset-color\":\"#fff\",\"--tw-ring-color\":\"rgba(59, 130, 246, 0.5)\",\"--tw-ring-offset-shadow\":\"0 0 #0000\",\"--tw-ring-shadow\":\"0 0 #0000\"}},{\"selectors\":[\"#ii6fs-2\"],\"style\":{\"border-color\":\"rgba(229,231,235,var(--tw-border-opacity))\",\"--tw-border-opacity\":\"1\",\"--tw-shadow\":\"0 0 #0000\",\"--tw-ring-inset\":\"var(--tw-empty, )\",\"--tw-ring-offset-width\":\"0px\",\"--tw-ring-offset-color\":\"#fff\",\"--tw-ring-color\":\"rgba(59, 130, 246, 0.5)\",\"--tw-ring-offset-shadow\":\"0 0 #0000\",\"--tw-ring-shadow\":\"0 0 #0000\"}},{\"selectors\":[\"#iheww\"],\"style\":{\"border-color\":\"rgba(229,231,235,var(--tw-border-opacity))\",\"--tw-border-opacity\":\"1\",\"--tw-shadow\":\"0 0 #0000\",\"--tw-ring-inset\":\"var(--tw-empty, )\",\"--tw-ring-offset-width\":\"0px\",\"--tw-ring-offset-color\":\"#fff\",\"--tw-ring-color\":\"rgba(59, 130, 246, 0.5)\",\"--tw-ring-offset-shadow\":\"0 0 #0000\",\"--tw-ring-shadow\":\"0 0 #0000\"}},{\"selectors\":[\"#ikl0j\"],\"style\":{\"border-color\":\"rgba(229,231,235,var(--tw-border-opacity))\",\"--tw-border-opacity\":\"1\",\"--tw-shadow\":\"0 0 #0000\",\"--tw-ring-inset\":\"var(--tw-empty, )\",\"--tw-ring-offset-width\":\"0px\",\"--tw-ring-offset-color\":\"#fff\",\"--tw-ring-color\":\"rgba(59, 130, 246, 0.5)\",\"--tw-ring-offset-shadow\":\"0 0 #0000\",\"--tw-ring-shadow\":\"0 0 #0000\"}},{\"selectors\":[\"#ighb3\"],\"style\":{\"color\":\"red\",\"__p\":false}},{\"selectors\":[\"#ilvz3\"],\"style\":{\"color\":\"red\",\"__p\":false}},{\"selectors\":[\"#iugp6\"],\"style\":{\"color\":\"#509ae3\",\"__p\":false}},{\"selectors\":[\"#iztmh\"],\"style\":{\"color\":\"#509ae3\",\"__p\":false}},{\"selectors\":[\"#i8xpi\"],\"style\":{\"color\":\"#ff0000\",\"__p\":false}},{\"selectors\":[\"#ib8a3\"],\"style\":{\"color\":\"#f70000\",\"__p\":false}},{\"selectors\":[\"#iy7pq\"],\"style\":{\"color\":\"#f20000\",\"__p\":false}},{\"selectors\":[\"#ixhbv\"],\"style\":{\"color\":\"red\",\"__p\":false}},{\"selectors\":[\"#ijwh1\"],\"style\":{\"color\":\"black\",\"__p\":false}}]"
},
"picURL": [],
"fileURL": null,
"markdown": []
},
{
"id": "6262b61b3beec065d67999d1",
"name": "v1",
"date": "2022-03-06T14:53:08.137+00:00",
"content": {
"mycustom-html": "<div id=\"iq9w\"><b id=\"iqcs\">Virtual Memory V1</b><b></b></div><div id=\"iq1l\" class=\"gjs-row\"><div id=\"ib8l\" class=\"gjs-cell\"><div id=\"ivqa3\"><span><b>1. 主要目的:</b><br/></span>允許process size在超過physical memory free space size之下,仍能執行。That is<span id=\"i3np5\"></span>, <span id=\"ighb3\">logical memory size不會受physical size之限制</span><font color=\"#f90000\" id=\"iheww\"><br id=\"ikl0j\"/></font><span id=\"iltsi\">2. 觀念:<br/></span>即是<span id=\"ilvz3\">"Partition loading"</span> process部分內容,process都可執行(even 不載入也可執行)<br/>- 早期: Dynamic loading觀念<br/>- 現代: OS提供Virtual Memory特性<br/><b>3. 其他附帶好處:<br/></b>a. 若process只載入部分即可執行,那表示同一時間可以載入的process數目會變多 => multiprogramming degree上升 => cpu utilization 相對高<br/>b. less I/O Time<br/><span id=\"iugp6\">(因為載入少,I/O transfer time會少)<br/></span>c. Memory utilization 相對高<br/>d. programmer無須煩惱process size太大之問題<br/>e. Copy-on-write技術speed up process creation<br/><br/></div><div id=\"igdof\"><span id=\"iwaj-2\" draggable=\"true\">實現Virtual Memory的技術之一: Demand Paging:<br/>1. Def: <br id=\"if0ur-2\" draggable=\"true\"/></span>架構在前面的Page Memory Management基礎<br/>差別: <br/><span id=\"ib8a3\">- process執行之前,無需事先載入全部的Pages,而是載入部分所需之Pages,即可執行</span><font color=\"#f90000\"><br/></font><span id=\"iztmh\">(也可以不載入任何Page即可執行,此為"pure demand paging",若事先載入猜測的Pages,叫做"prepaging")<br/></span><span id=\"iltsi-2\" draggable=\"true\"><span id=\"iq9y6\">-</span><b draggable=\"true\" id=\"ix7uv\"> </b><span draggable=\"true\" id=\"iy7pq\">當process執行,若所需Page皆在Memory,則一切正常無誤<br/></span><span draggable=\"true\" id=\"ixhbv\">- 但若process企圖存取不再Memory中之Page,則產生Page fault,then OS必須處裡,將miss page載入Memory from Disk後,process才可往下執行<br/><b id=\"ijwh1\">2. 因此:</b></span><br id=\"ii6fs-2\" draggable=\"true\"/></span>必須有個機制區分那些pages在or不在Memory中,故page table會有一個欄位: <span id=\"i8xpi\">valid-Invalid Bit</span></div></div><div id=\"iukp\" class=\"gjs-cell\"><img id=\"ibvfc\" src=\"https://2.bp.blogspot.com/-n-_qs81sDyo/WZ7r0VY7bkI/AAAAAAABVX4/ZPLIVGyddkISiN8BOL3_2La-7UB0Bc9EACLcBGAs/s1600/9_01_VirtualMemoryLarger.jpg\"/></div></div>",
"mycustom-components": "[{\"type\":\"text\",\"attributes\":{\"id\":\"iq9w\"},\"components\":[{\"tagName\":\"b\",\"type\":\"text\",\"attributes\":{\"id\":\"iqcs\"},\"components\":[{\"type\":\"textnode\",\"content\":\"Virtual Memory V1\"}]},{\"tagName\":\"b\",\"type\":\"text\"}]},{\"name\":\"Row\",\"droppable\":\".gjs-cell\",\"resizable\":{\"tl\":0,\"tc\":0,\"tr\":0,\"cl\":0,\"cr\":0,\"bl\":0,\"br\":0,\"minDim\":1},\"classes\":[{\"name\":\"gjs-row\",\"private\":1}],\"attributes\":{\"id\":\"iq1l\"},\"components\":[{\"name\":\"Cell\",\"draggable\":\".gjs-row\",\"resizable\":{\"tl\":0,\"tc\":0,\"tr\":0,\"cl\":0,\"cr\":1,\"bl\":0,\"br\":0,\"minDim\":1,\"bc\":0,\"currentUnit\":1,\"step\":0.2},\"classes\":[{\"name\":\"gjs-cell\",\"private\":1}],\"attributes\":{\"id\":\"ib8l\"},\"components\":[{\"type\":\"text\",\"attributes\":{\"id\":\"ivqa3\"},\"components\":[{\"tagName\":\"span\",\"type\":\"text\",\"components\":[{\"tagName\":\"b\",\"type\":\"text\",\"components\":[{\"type\":\"textnode\",\"content\":\"1. 主要目的:\"}]},{\"tagName\":\"br\",\"void\":true}]},{\"type\":\"textnode\",\"content\":\"允許process size在超過physical memory free space size之下,仍能執行。That is\"},{\"tagName\":\"span\",\"attributes\":{\"id\":\"i3np5\"}},{\"type\":\"textnode\",\"content\":\", \"},{\"tagName\":\"span\",\"type\":\"text\",\"attributes\":{\"id\":\"ighb3\"},\"components\":[{\"type\":\"textnode\",\"content\":\"logical memory size不會受physical size之限制\"}]},{\"tagName\":\"font\",\"attributes\":{\"color\":\"#f90000\",\"id\":\"iheww\"},\"components\":[{\"tagName\":\"br\",\"void\":true,\"attributes\":{\"id\":\"ikl0j\"}}]},{\"tagName\":\"span\",\"type\":\"text\",\"attributes\":{\"id\":\"iltsi\"},\"components\":[{\"type\":\"textnode\",\"content\":\"2. 觀念:\"},{\"tagName\":\"br\",\"void\":true}]},{\"type\":\"textnode\",\"content\":\"即是\"},{\"tagName\":\"span\",\"type\":\"text\",\"attributes\":{\"id\":\"ilvz3\"},\"components\":[{\"type\":\"textnode\",\"content\":\"\\\"Partition loading\\\"\"}]},{\"type\":\"textnode\",\"content\":\" process部分內容,process都可執行(even 不載入也可執行)\"},{\"tagName\":\"br\",\"void\":true},{\"type\":\"textnode\",\"content\":\"- 早期: Dynamic loading觀念\"},{\"tagName\":\"br\",\"void\":true},{\"type\":\"textnode\",\"content\":\"- 現代: OS提供Virtual Memory特性\"},{\"tagName\":\"br\",\"void\":true},{\"tagName\":\"b\",\"type\":\"text\",\"components\":[{\"type\":\"textnode\",\"content\":\"3. 其他附帶好處:\"},{\"tagName\":\"br\",\"void\":true}]},{\"type\":\"textnode\",\"content\":\"a. 若process只載入部分即可執行,那表示同一時間可以載入的process數目會變多 => multiprogramming degree上升 => cpu utilization 相對高\"},{\"tagName\":\"br\",\"void\":true},{\"type\":\"textnode\",\"content\":\"b. less I/O Time\"},{\"tagName\":\"br\",\"void\":true},{\"tagName\":\"span\",\"type\":\"text\",\"attributes\":{\"id\":\"iugp6\"},\"components\":[{\"type\":\"textnode\",\"content\":\"(因為載入少,I/O transfer time會少)\"},{\"tagName\":\"br\",\"void\":true}]},{\"type\":\"textnode\",\"content\":\"c. Memory utilization 相對高\"},{\"tagName\":\"br\",\"void\":true},{\"type\":\"textnode\",\"content\":\"d. programmer無須煩惱process size太大之問題\"},{\"tagName\":\"br\",\"void\":true},{\"type\":\"textnode\",\"content\":\"e. Copy-on-write技術speed up process creation\"},{\"tagName\":\"br\",\"void\":true},{\"tagName\":\"br\",\"void\":true}]},{\"type\":\"text\",\"chooser\":\"DxkNb\",\"attributes\":{\"id\":\"igdof\"},\"components\":[{\"tagName\":\"span\",\"type\":\"text\",\"attributes\":{\"id\":\"iwaj-2\",\"draggable\":\"true\"},\"components\":[{\"type\":\"textnode\",\"content\":\"實現Virtual Memory的技術之一: Demand Paging:\"},{\"tagName\":\"br\",\"void\":true},{\"type\":\"textnode\",\"content\":\"1. Def: \"},{\"tagName\":\"br\",\"type\":\"default\",\"void\":true,\"attributes\":{\"id\":\"if0ur-2\",\"draggable\":\"true\"}}]},{\"type\":\"textnode\",\"content\":\"架構在前面的Page Memory Management基礎\"},{\"tagName\":\"br\",\"void\":true},{\"type\":\"textnode\",\"content\":\"差別: \"},{\"tagName\":\"br\",\"void\":true},{\"tagName\":\"span\",\"type\":\"text\",\"attributes\":{\"id\":\"ib8a3\"},\"components\":[{\"type\":\"textnode\",\"content\":\"- process執行之前,無需事先載入全部的Pages,而是載入部分所需之Pages,即可執行\"}]},{\"tagName\":\"font\",\"attributes\":{\"color\":\"#f90000\"},\"components\":[{\"tagName\":\"br\",\"void\":true}]},{\"tagName\":\"span\",\"type\":\"text\",\"attributes\":{\"id\":\"iztmh\"},\"components\":[{\"type\":\"textnode\",\"content\":\"(也可以不載入任何Page即可執行,此為\\\"pure demand paging\\\",若事先載入猜測的Pages,叫做\\\"prepaging\\\")\"},{\"tagName\":\"br\",\"void\":true}]},{\"tagName\":\"span\",\"type\":\"text\",\"attributes\":{\"id\":\"iltsi-2\",\"draggable\":\"true\"},\"components\":[{\"tagName\":\"span\",\"type\":\"text\",\"chooser\":\"4PuFJ\",\"attributes\":{\"id\":\"iq9y6\"},\"components\":[{\"type\":\"textnode\",\"content\":\"-\"}]},{\"tagName\":\"b\",\"type\":\"text\",\"attributes\":{\"draggable\":\"true\",\"id\":\"ix7uv\"},\"components\":[{\"type\":\"textnode\",\"content\":\" \"}]},{\"tagName\":\"span\",\"type\":\"text\",\"attributes\":{\"draggable\":\"true\",\"id\":\"iy7pq\"},\"components\":[{\"type\":\"textnode\",\"content\":\"當process執行,若所需Page皆在Memory,則一切正常無誤\"},{\"tagName\":\"br\",\"void\":true}]},{\"tagName\":\"span\",\"type\":\"text\",\"attributes\":{\"draggable\":\"true\",\"id\":\"ixhbv\"},\"components\":[{\"type\":\"textnode\",\"content\":\"- 但若process企圖存取不再Memory中之Page,則產生Page fault,then OS必須處裡,將miss page載入Memory from Disk後,process才可往下執行\"},{\"tagName\":\"br\",\"void\":true},{\"tagName\":\"b\",\"type\":\"text\",\"chooser\":\"3LTHQ\",\"attributes\":{\"id\":\"ijwh1\"},\"components\":[{\"type\":\"textnode\",\"content\":\"2. 因此:\"}]}]},{\"tagName\":\"br\",\"type\":\"default\",\"void\":true,\"attributes\":{\"id\":\"ii6fs-2\",\"draggable\":\"true\"}}]},{\"type\":\"textnode\",\"content\":\"必須有個機制區分那些pages在or不在Memory中,故page table會有一個欄位: \"},{\"tagName\":\"span\",\"type\":\"text\",\"attributes\":{\"id\":\"i8xpi\"},\"components\":[{\"type\":\"textnode\",\"content\":\"valid-Invalid Bit\"}]}]}]},{\"name\":\"Cell\",\"draggable\":\".gjs-row\",\"resizable\":{\"tl\":0,\"tc\":0,\"tr\":0,\"cl\":0,\"cr\":1,\"bl\":0,\"br\":0,\"minDim\":1,\"bc\":0,\"currentUnit\":1,\"step\":0.2},\"classes\":[{\"name\":\"gjs-cell\",\"private\":1}],\"attributes\":{\"id\":\"iukp\"},\"components\":[{\"type\":\"image\",\"attributes\":{\"id\":\"ibvfc\",\"src\":\"https://2.bp.blogspot.com/-n-_qs81sDyo/WZ7r0VY7bkI/AAAAAAABVX4/ZPLIVGyddkISiN8BOL3_2La-7UB0Bc9EACLcBGAs/s1600/9_01_VirtualMemoryLarger.jpg\"}}]}]}]",
"mycustom-assets": "[{\"type\":\"image\",\"src\":\"https://2.bp.blogspot.com/-n-_qs81sDyo/WZ7r0VY7bkI/AAAAAAABVX4/ZPLIVGyddkISiN8BOL3_2La-7UB0Bc9EACLcBGAs/s1600/9_01_VirtualMemoryLarger.jpg\",\"unitDim\":\"px\",\"height\":0,\"width\":0},{\"type\":\"image\",\"src\":\"http://placehold.it/350x250/459ba8/fff/image2.jpg\",\"unitDim\":\"px\",\"height\":350,\"width\":250},{\"type\":\"image\",\"src\":\"http://placehold.it/350x250/79c267/fff/image3.jpg\",\"unitDim\":\"px\",\"height\":350,\"width\":250},{\"type\":\"image\",\"src\":\"http://placehold.it/350x250/79c267/fff/image3.jpg\",\"unitDim\":\"px\",\"height\":350,\"width\":250}]",
"mycustom-css": "* { box-sizing: border-box; } body {margin: 0;}#iq9w{padding:10px;float:none;display:block;align-items:stretch;height:65px;font-size:30px;text-align:center;}.gjs-row{display:table;padding-top:10px;padding-right:10px;padding-bottom:10px;padding-left:10px;width:100%;}.gjs-cell{width:8%;display:table-cell;height:75px;}#iqcs{text-align:center;}#ibvfc{color:black;}#ivqa3{padding:10px;margin:0 0 0 0;top:-24.5em;position:relative;}#igdof{padding:10px;position:relative;top:-24.5em;}#iltsi{border-color:rgba(229,231,235,var(--tw-border-opacity));--tw-border-opacity:1;--tw-shadow:0 0 #0000;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59, 130, 246, 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;font-weight:bolder;}#iwaj-2{border-color:rgba(229,231,235,var(--tw-border-opacity));--tw-border-opacity:1;--tw-shadow:0 0 #0000;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59, 130, 246, 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;font-weight:bolder;}#if0ur-2{border-color:rgba(229,231,235,var(--tw-border-opacity));--tw-border-opacity:1;--tw-shadow:0 0 #0000;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59, 130, 246, 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;}#iltsi-2{border-color:rgba(229,231,235,var(--tw-border-opacity));--tw-border-opacity:1;--tw-shadow:0 0 #0000;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59, 130, 246, 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;}#ii6fs-2{border-color:rgba(229,231,235,var(--tw-border-opacity));--tw-border-opacity:1;--tw-shadow:0 0 #0000;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59, 130, 246, 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;}#iheww{border-color:rgba(229,231,235,var(--tw-border-opacity));--tw-border-opacity:1;--tw-shadow:0 0 #0000;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59, 130, 246, 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;}#ikl0j{border-color:rgba(229,231,235,var(--tw-border-opacity));--tw-border-opacity:1;--tw-shadow:0 0 #0000;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59, 130, 246, 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;}#ighb3{color:red;}#ilvz3{color:red;}#iugp6{color:#509ae3;}#iztmh{color:#509ae3;}#i8xpi{color:#ff0000;}#ib8a3{color:#f70000;}#iy7pq{color:#f20000;}#ixhbv{color:red;}#ijwh1{color:black;}@media (max-width: 768px){.gjs-cell{width:100%;display:block;}}",
"mycustom-styles": "[{\"selectors\":[\"#iq9w\"],\"style\":{\"padding\":\"10px\",\"float\":\"none\",\"__p\":false,\"display\":\"block\",\"align-items\":\"stretch\",\"height\":\"65px\",\"font-size\":\"30px\",\"text-align\":\"center\"}},{\"selectors\":[{\"name\":\"gjs-row\",\"private\":1}],\"style\":{\"display\":\"table\",\"padding-top\":\"10px\",\"padding-right\":\"10px\",\"padding-bottom\":\"10px\",\"padding-left\":\"10px\",\"width\":\"100%\"}},{\"selectors\":[{\"name\":\"gjs-cell\",\"private\":1}],\"style\":{\"width\":\"100%\",\"display\":\"block\"},\"mediaText\":\"(max-width: 768px)\",\"atRuleType\":\"media\"},{\"selectors\":[\"gjs-cell30\"],\"style\":{\"width\":\"100%\",\"display\":\"block\"},\"mediaText\":\"(max-width: 768px)\",\"atRuleType\":\"media\"},{\"selectors\":[\"gjs-cell70\"],\"style\":{\"width\":\"100%\",\"display\":\"block\"},\"mediaText\":\"(max-width: 768px)\",\"atRuleType\":\"media\"},{\"selectors\":[{\"name\":\"gjs-cell\",\"private\":1}],\"style\":{\"width\":\"8%\",\"display\":\"table-cell\",\"height\":\"75px\"}},{\"selectors\":[\"#iqcs\"],\"style\":{\"text-align\":\"center\",\"__p\":false}},{\"selectors\":[\"#ibvfc\"],\"style\":{\"color\":\"black\"}},{\"selectors\":[\"#ivqa3\"],\"style\":{\"padding\":\"10px\",\"height\":\"\",\"__p\":false,\"margin\":\"0 0 0 0\",\"margin-top\":\"\",\"margin-right\":\"\",\"margin-bottom\":\"\",\"margin-left\":\"\",\"top\":\"-24.5em\",\"right\":\"\",\"left\":\"\",\"position\":\"relative\",\"color\":\"\"}},{\"selectors\":[\"#igdof\"],\"style\":{\"padding\":\"10px\",\"position\":\"relative\",\"__p\":false,\"top\":\"-24.5em\"}},{\"selectors\":[\"#iltsi\"],\"style\":{\"border-color\":\"rgba(229,231,235,var(--tw-border-opacity))\",\"--tw-border-opacity\":\"1\",\"--tw-shadow\":\"0 0 #0000\",\"--tw-ring-inset\":\"var(--tw-empty, )\",\"--tw-ring-offset-width\":\"0px\",\"--tw-ring-offset-color\":\"#fff\",\"--tw-ring-color\":\"rgba(59, 130, 246, 0.5)\",\"--tw-ring-offset-shadow\":\"0 0 #0000\",\"--tw-ring-shadow\":\"0 0 #0000\",\"font-weight\":\"bolder\"}},{\"selectors\":[\"#iq1l\"],\"style\":{\"color\":\"\",\"__p\":true}},{\"selectors\":[\"#iwaj-2\"],\"style\":{\"border-color\":\"rgba(229,231,235,var(--tw-border-opacity))\",\"--tw-border-opacity\":\"1\",\"--tw-shadow\":\"0 0 #0000\",\"--tw-ring-inset\":\"var(--tw-empty, )\",\"--tw-ring-offset-width\":\"0px\",\"--tw-ring-offset-color\":\"#fff\",\"--tw-ring-color\":\"rgba(59, 130, 246, 0.5)\",\"--tw-ring-offset-shadow\":\"0 0 #0000\",\"--tw-ring-shadow\":\"0 0 #0000\",\"font-weight\":\"bolder\"}},{\"selectors\":[\"#if0ur-2\"],\"style\":{\"border-color\":\"rgba(229,231,235,var(--tw-border-opacity))\",\"--tw-border-opacity\":\"1\",\"--tw-shadow\":\"0 0 #0000\",\"--tw-ring-inset\":\"var(--tw-empty, )\",\"--tw-ring-offset-width\":\"0px\",\"--tw-ring-offset-color\":\"#fff\",\"--tw-ring-color\":\"rgba(59, 130, 246, 0.5)\",\"--tw-ring-offset-shadow\":\"0 0 #0000\",\"--tw-ring-shadow\":\"0 0 #0000\"}},{\"selectors\":[\"#iltsi-2\"],\"style\":{\"border-color\":\"rgba(229,231,235,var(--tw-border-opacity))\",\"--tw-border-opacity\":\"1\",\"--tw-shadow\":\"0 0 #0000\",\"--tw-ring-inset\":\"var(--tw-empty, )\",\"--tw-ring-offset-width\":\"0px\",\"--tw-ring-offset-color\":\"#fff\",\"--tw-ring-color\":\"rgba(59, 130, 246, 0.5)\",\"--tw-ring-offset-shadow\":\"0 0 #0000\",\"--tw-ring-shadow\":\"0 0 #0000\"}},{\"selectors\":[\"#ii6fs-2\"],\"style\":{\"border-color\":\"rgba(229,231,235,var(--tw-border-opacity))\",\"--tw-border-opacity\":\"1\",\"--tw-shadow\":\"0 0 #0000\",\"--tw-ring-inset\":\"var(--tw-empty, )\",\"--tw-ring-offset-width\":\"0px\",\"--tw-ring-offset-color\":\"#fff\",\"--tw-ring-color\":\"rgba(59, 130, 246, 0.5)\",\"--tw-ring-offset-shadow\":\"0 0 #0000\",\"--tw-ring-shadow\":\"0 0 #0000\"}},{\"selectors\":[\"#iheww\"],\"style\":{\"border-color\":\"rgba(229,231,235,var(--tw-border-opacity))\",\"--tw-border-opacity\":\"1\",\"--tw-shadow\":\"0 0 #0000\",\"--tw-ring-inset\":\"var(--tw-empty, )\",\"--tw-ring-offset-width\":\"0px\",\"--tw-ring-offset-color\":\"#fff\",\"--tw-ring-color\":\"rgba(59, 130, 246, 0.5)\",\"--tw-ring-offset-shadow\":\"0 0 #0000\",\"--tw-ring-shadow\":\"0 0 #0000\"}},{\"selectors\":[\"#ikl0j\"],\"style\":{\"border-color\":\"rgba(229,231,235,var(--tw-border-opacity))\",\"--tw-border-opacity\":\"1\",\"--tw-shadow\":\"0 0 #0000\",\"--tw-ring-inset\":\"var(--tw-empty, )\",\"--tw-ring-offset-width\":\"0px\",\"--tw-ring-offset-color\":\"#fff\",\"--tw-ring-color\":\"rgba(59, 130, 246, 0.5)\",\"--tw-ring-offset-shadow\":\"0 0 #0000\",\"--tw-ring-shadow\":\"0 0 #0000\"}},{\"selectors\":[\"#ighb3\"],\"style\":{\"color\":\"red\",\"__p\":false}},{\"selectors\":[\"#ilvz3\"],\"style\":{\"color\":\"red\",\"__p\":false}},{\"selectors\":[\"#iugp6\"],\"style\":{\"color\":\"#509ae3\",\"__p\":false}},{\"selectors\":[\"#iztmh\"],\"style\":{\"color\":\"#509ae3\",\"__p\":false}},{\"selectors\":[\"#i8xpi\"],\"style\":{\"color\":\"#ff0000\",\"__p\":false}},{\"selectors\":[\"#ib8a3\"],\"style\":{\"color\":\"#f70000\",\"__p\":false}},{\"selectors\":[\"#iy7pq\"],\"style\":{\"color\":\"#f20000\",\"__p\":false}},{\"selectors\":[\"#ixhbv\"],\"style\":{\"color\":\"red\",\"__p\":false}},{\"selectors\":[\"#ijwh1\"],\"style\":{\"color\":\"black\",\"__p\":false}}]"
},
"picURL": [],
"fileURL": null,
"markdown": []
},
{
"id": "6262b61b3beec065d67999d2",
"name": "v2",
"date": "2022-03-06T14:53:08.137+00:00",
"content": {
"mycustom-html": "<div id=\"iq9w\"><b id=\"iqcs\">Virtual Memory V2</b><b></b></div><div id=\"iq1l\" class=\"gjs-row\"><div id=\"ib8l\" class=\"gjs-cell\"><div id=\"ivqa3\"><span><b>1. 主要目的:</b><br/></span>允許process size在超過physical memory free space size之下,仍能執行。That is<span id=\"i3np5\"></span>, <span id=\"ighb3\">logical memory size不會受physical size之限制</span><font color=\"#f90000\" id=\"iheww\"><br id=\"ikl0j\"/></font><span id=\"iltsi\">2. 觀念:<br/></span>即是<span id=\"ilvz3\">"Partition loading"</span> process部分內容,process都可執行(even 不載入也可執行)<br/>- 早期: Dynamic loading觀念<br/>- 現代: OS提供Virtual Memory特性<br/><b>3. 其他附帶好處:<br/></b>a. 若process只載入部分即可執行,那表示同一時間可以載入的process數目會變多 => multiprogramming degree上升 => cpu utilization 相對高<br/>b. less I/O Time<br/><span id=\"iugp6\">(因為載入少,I/O transfer time會少)<br/></span>c. Memory utilization 相對高<br/>d. programmer無須煩惱process size太大之問題<br/>e. Copy-on-write技術speed up process creation<br/><br/></div><div id=\"igdof\"><span id=\"iwaj-2\" draggable=\"true\">實現Virtual Memory的技術之一: Demand Paging:<br/>1. Def: <br id=\"if0ur-2\" draggable=\"true\"/></span>架構在前面的Page Memory Management基礎<br/>差別: <br/><span id=\"ib8a3\">- process執行之前,無需事先載入全部的Pages,而是載入部分所需之Pages,即可執行</span><font color=\"#f90000\"><br/></font><span id=\"iztmh\">(也可以不載入任何Page即可執行,此為"pure demand paging",若事先載入猜測的Pages,叫做"prepaging")<br/></span><span id=\"iltsi-2\" draggable=\"true\"><span id=\"iq9y6\">-</span><b draggable=\"true\" id=\"ix7uv\"> </b><span draggable=\"true\" id=\"iy7pq\">當process執行,若所需Page皆在Memory,則一切正常無誤<br/></span><span draggable=\"true\" id=\"ixhbv\">- 但若process企圖存取不再Memory中之Page,則產生Page fault,then OS必須處裡,將miss page載入Memory from Disk後,process才可往下執行<br/><b id=\"ijwh1\">2. 因此:</b></span><br id=\"ii6fs-2\" draggable=\"true\"/></span>必須有個機制區分那些pages在or不在Memory中,故page table會有一個欄位: <span id=\"i8xpi\">valid-Invalid Bit</span></div></div><div id=\"iukp\" class=\"gjs-cell\"><img id=\"ibvfc\" src=\"https://2.bp.blogspot.com/-n-_qs81sDyo/WZ7r0VY7bkI/AAAAAAABVX4/ZPLIVGyddkISiN8BOL3_2La-7UB0Bc9EACLcBGAs/s1600/9_01_VirtualMemoryLarger.jpg\"/></div></div>",
"mycustom-components": "[{\"type\":\"text\",\"attributes\":{\"id\":\"iq9w\"},\"components\":[{\"tagName\":\"b\",\"type\":\"text\",\"attributes\":{\"id\":\"iqcs\"},\"components\":[{\"type\":\"textnode\",\"content\":\"Virtual Memory V2\"}]},{\"tagName\":\"b\",\"type\":\"text\"}]},{\"name\":\"Row\",\"droppable\":\".gjs-cell\",\"resizable\":{\"tl\":0,\"tc\":0,\"tr\":0,\"cl\":0,\"cr\":0,\"bl\":0,\"br\":0,\"minDim\":1},\"classes\":[{\"name\":\"gjs-row\",\"private\":1}],\"attributes\":{\"id\":\"iq1l\"},\"components\":[{\"name\":\"Cell\",\"draggable\":\".gjs-row\",\"resizable\":{\"tl\":0,\"tc\":0,\"tr\":0,\"cl\":0,\"cr\":1,\"bl\":0,\"br\":0,\"minDim\":1,\"bc\":0,\"currentUnit\":1,\"step\":0.2},\"classes\":[{\"name\":\"gjs-cell\",\"private\":1}],\"attributes\":{\"id\":\"ib8l\"},\"components\":[{\"type\":\"text\",\"attributes\":{\"id\":\"ivqa3\"},\"components\":[{\"tagName\":\"span\",\"type\":\"text\",\"components\":[{\"tagName\":\"b\",\"type\":\"text\",\"components\":[{\"type\":\"textnode\",\"content\":\"1. 主要目的:\"}]},{\"tagName\":\"br\",\"void\":true}]},{\"type\":\"textnode\",\"content\":\"允許process size在超過physical memory free space size之下,仍能執行。That is\"},{\"tagName\":\"span\",\"attributes\":{\"id\":\"i3np5\"}},{\"type\":\"textnode\",\"content\":\", \"},{\"tagName\":\"span\",\"type\":\"text\",\"attributes\":{\"id\":\"ighb3\"},\"components\":[{\"type\":\"textnode\",\"content\":\"logical memory size不會受physical size之限制\"}]},{\"tagName\":\"font\",\"attributes\":{\"color\":\"#f90000\",\"id\":\"iheww\"},\"components\":[{\"tagName\":\"br\",\"void\":true,\"attributes\":{\"id\":\"ikl0j\"}}]},{\"tagName\":\"span\",\"type\":\"text\",\"attributes\":{\"id\":\"iltsi\"},\"components\":[{\"type\":\"textnode\",\"content\":\"2. 觀念:\"},{\"tagName\":\"br\",\"void\":true}]},{\"type\":\"textnode\",\"content\":\"即是\"},{\"tagName\":\"span\",\"type\":\"text\",\"attributes\":{\"id\":\"ilvz3\"},\"components\":[{\"type\":\"textnode\",\"content\":\"\\\"Partition loading\\\"\"}]},{\"type\":\"textnode\",\"content\":\" process部分內容,process都可執行(even 不載入也可執行)\"},{\"tagName\":\"br\",\"void\":true},{\"type\":\"textnode\",\"content\":\"- 早期: Dynamic loading觀念\"},{\"tagName\":\"br\",\"void\":true},{\"type\":\"textnode\",\"content\":\"- 現代: OS提供Virtual Memory特性\"},{\"tagName\":\"br\",\"void\":true},{\"tagName\":\"b\",\"type\":\"text\",\"components\":[{\"type\":\"textnode\",\"content\":\"3. 其他附帶好處:\"},{\"tagName\":\"br\",\"void\":true}]},{\"type\":\"textnode\",\"content\":\"a. 若process只載入部分即可執行,那表示同一時間可以載入的process數目會變多 => multiprogramming degree上升 => cpu utilization 相對高\"},{\"tagName\":\"br\",\"void\":true},{\"type\":\"textnode\",\"content\":\"b. less I/O Time\"},{\"tagName\":\"br\",\"void\":true},{\"tagName\":\"span\",\"type\":\"text\",\"attributes\":{\"id\":\"iugp6\"},\"components\":[{\"type\":\"textnode\",\"content\":\"(因為載入少,I/O transfer time會少)\"},{\"tagName\":\"br\",\"void\":true}]},{\"type\":\"textnode\",\"content\":\"c. Memory utilization 相對高\"},{\"tagName\":\"br\",\"void\":true},{\"type\":\"textnode\",\"content\":\"d. programmer無須煩惱process size太大之問題\"},{\"tagName\":\"br\",\"void\":true},{\"type\":\"textnode\",\"content\":\"e. Copy-on-write技術speed up process creation\"},{\"tagName\":\"br\",\"void\":true},{\"tagName\":\"br\",\"void\":true}]},{\"type\":\"text\",\"chooser\":\"DxkNb\",\"attributes\":{\"id\":\"igdof\"},\"components\":[{\"tagName\":\"span\",\"type\":\"text\",\"attributes\":{\"id\":\"iwaj-2\",\"draggable\":\"true\"},\"components\":[{\"type\":\"textnode\",\"content\":\"實現Virtual Memory的技術之一: Demand Paging:\"},{\"tagName\":\"br\",\"void\":true},{\"type\":\"textnode\",\"content\":\"1. Def: \"},{\"tagName\":\"br\",\"type\":\"default\",\"void\":true,\"attributes\":{\"id\":\"if0ur-2\",\"draggable\":\"true\"}}]},{\"type\":\"textnode\",\"content\":\"架構在前面的Page Memory Management基礎\"},{\"tagName\":\"br\",\"void\":true},{\"type\":\"textnode\",\"content\":\"差別: \"},{\"tagName\":\"br\",\"void\":true},{\"tagName\":\"span\",\"type\":\"text\",\"attributes\":{\"id\":\"ib8a3\"},\"components\":[{\"type\":\"textnode\",\"content\":\"- process執行之前,無需事先載入全部的Pages,而是載入部分所需之Pages,即可執行\"}]},{\"tagName\":\"font\",\"attributes\":{\"color\":\"#f90000\"},\"components\":[{\"tagName\":\"br\",\"void\":true}]},{\"tagName\":\"span\",\"type\":\"text\",\"attributes\":{\"id\":\"iztmh\"},\"components\":[{\"type\":\"textnode\",\"content\":\"(也可以不載入任何Page即可執行,此為\\\"pure demand paging\\\",若事先載入猜測的Pages,叫做\\\"prepaging\\\")\"},{\"tagName\":\"br\",\"void\":true}]},{\"tagName\":\"span\",\"type\":\"text\",\"attributes\":{\"id\":\"iltsi-2\",\"draggable\":\"true\"},\"components\":[{\"tagName\":\"span\",\"type\":\"text\",\"chooser\":\"4PuFJ\",\"attributes\":{\"id\":\"iq9y6\"},\"components\":[{\"type\":\"textnode\",\"content\":\"-\"}]},{\"tagName\":\"b\",\"type\":\"text\",\"attributes\":{\"draggable\":\"true\",\"id\":\"ix7uv\"},\"components\":[{\"type\":\"textnode\",\"content\":\" \"}]},{\"tagName\":\"span\",\"type\":\"text\",\"attributes\":{\"draggable\":\"true\",\"id\":\"iy7pq\"},\"components\":[{\"type\":\"textnode\",\"content\":\"當process執行,若所需Page皆在Memory,則一切正常無誤\"},{\"tagName\":\"br\",\"void\":true}]},{\"tagName\":\"span\",\"type\":\"text\",\"attributes\":{\"draggable\":\"true\",\"id\":\"ixhbv\"},\"components\":[{\"type\":\"textnode\",\"content\":\"- 但若process企圖存取不再Memory中之Page,則產生Page fault,then OS必須處裡,將miss page載入Memory from Disk後,process才可往下執行\"},{\"tagName\":\"br\",\"void\":true},{\"tagName\":\"b\",\"type\":\"text\",\"chooser\":\"3LTHQ\",\"attributes\":{\"id\":\"ijwh1\"},\"components\":[{\"type\":\"textnode\",\"content\":\"2. 因此:\"}]}]},{\"tagName\":\"br\",\"type\":\"default\",\"void\":true,\"attributes\":{\"id\":\"ii6fs-2\",\"draggable\":\"true\"}}]},{\"type\":\"textnode\",\"content\":\"必須有個機制區分那些pages在or不在Memory中,故page table會有一個欄位: \"},{\"tagName\":\"span\",\"type\":\"text\",\"attributes\":{\"id\":\"i8xpi\"},\"components\":[{\"type\":\"textnode\",\"content\":\"valid-Invalid Bit\"}]}]}]},{\"name\":\"Cell\",\"draggable\":\".gjs-row\",\"resizable\":{\"tl\":0,\"tc\":0,\"tr\":0,\"cl\":0,\"cr\":1,\"bl\":0,\"br\":0,\"minDim\":1,\"bc\":0,\"currentUnit\":1,\"step\":0.2},\"classes\":[{\"name\":\"gjs-cell\",\"private\":1}],\"attributes\":{\"id\":\"iukp\"},\"components\":[{\"type\":\"image\",\"attributes\":{\"id\":\"ibvfc\",\"src\":\"https://2.bp.blogspot.com/-n-_qs81sDyo/WZ7r0VY7bkI/AAAAAAABVX4/ZPLIVGyddkISiN8BOL3_2La-7UB0Bc9EACLcBGAs/s1600/9_01_VirtualMemoryLarger.jpg\"}}]}]}]",
"mycustom-assets": "[{\"type\":\"image\",\"src\":\"https://2.bp.blogspot.com/-n-_qs81sDyo/WZ7r0VY7bkI/AAAAAAABVX4/ZPLIVGyddkISiN8BOL3_2La-7UB0Bc9EACLcBGAs/s1600/9_01_VirtualMemoryLarger.jpg\",\"unitDim\":\"px\",\"height\":0,\"width\":0},{\"type\":\"image\",\"src\":\"http://placehold.it/350x250/459ba8/fff/image2.jpg\",\"unitDim\":\"px\",\"height\":350,\"width\":250},{\"type\":\"image\",\"src\":\"http://placehold.it/350x250/79c267/fff/image3.jpg\",\"unitDim\":\"px\",\"height\":350,\"width\":250},{\"type\":\"image\",\"src\":\"http://placehold.it/350x250/79c267/fff/image3.jpg\",\"unitDim\":\"px\",\"height\":350,\"width\":250}]",
"mycustom-css": "* { box-sizing: border-box; } body {margin: 0;}#iq9w{padding:10px;float:none;display:block;align-items:stretch;height:65px;font-size:30px;text-align:center;}.gjs-row{display:table;padding-top:10px;padding-right:10px;padding-bottom:10px;padding-left:10px;width:100%;}.gjs-cell{width:8%;display:table-cell;height:75px;}#iqcs{text-align:center;}#ibvfc{color:black;}#ivqa3{padding:10px;margin:0 0 0 0;top:-24.5em;position:relative;}#igdof{padding:10px;position:relative;top:-24.5em;}#iltsi{border-color:rgba(229,231,235,var(--tw-border-opacity));--tw-border-opacity:1;--tw-shadow:0 0 #0000;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59, 130, 246, 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;font-weight:bolder;}#iwaj-2{border-color:rgba(229,231,235,var(--tw-border-opacity));--tw-border-opacity:1;--tw-shadow:0 0 #0000;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59, 130, 246, 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;font-weight:bolder;}#if0ur-2{border-color:rgba(229,231,235,var(--tw-border-opacity));--tw-border-opacity:1;--tw-shadow:0 0 #0000;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59, 130, 246, 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;}#iltsi-2{border-color:rgba(229,231,235,var(--tw-border-opacity));--tw-border-opacity:1;--tw-shadow:0 0 #0000;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59, 130, 246, 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;}#ii6fs-2{border-color:rgba(229,231,235,var(--tw-border-opacity));--tw-border-opacity:1;--tw-shadow:0 0 #0000;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59, 130, 246, 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;}#iheww{border-color:rgba(229,231,235,var(--tw-border-opacity));--tw-border-opacity:1;--tw-shadow:0 0 #0000;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59, 130, 246, 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;}#ikl0j{border-color:rgba(229,231,235,var(--tw-border-opacity));--tw-border-opacity:1;--tw-shadow:0 0 #0000;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59, 130, 246, 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;}#ighb3{color:red;}#ilvz3{color:red;}#iugp6{color:#509ae3;}#iztmh{color:#509ae3;}#i8xpi{color:#ff0000;}#ib8a3{color:#f70000;}#iy7pq{color:#f20000;}#ixhbv{color:red;}#ijwh1{color:black;}@media (max-width: 768px){.gjs-cell{width:100%;display:block;}}",
"mycustom-styles": "[{\"selectors\":[\"#iq9w\"],\"style\":{\"padding\":\"10px\",\"float\":\"none\",\"__p\":false,\"display\":\"block\",\"align-items\":\"stretch\",\"height\":\"65px\",\"font-size\":\"30px\",\"text-align\":\"center\"}},{\"selectors\":[{\"name\":\"gjs-row\",\"private\":1}],\"style\":{\"display\":\"table\",\"padding-top\":\"10px\",\"padding-right\":\"10px\",\"padding-bottom\":\"10px\",\"padding-left\":\"10px\",\"width\":\"100%\"}},{\"selectors\":[{\"name\":\"gjs-cell\",\"private\":1}],\"style\":{\"width\":\"100%\",\"display\":\"block\"},\"mediaText\":\"(max-width: 768px)\",\"atRuleType\":\"media\"},{\"selectors\":[\"gjs-cell30\"],\"style\":{\"width\":\"100%\",\"display\":\"block\"},\"mediaText\":\"(max-width: 768px)\",\"atRuleType\":\"media\"},{\"selectors\":[\"gjs-cell70\"],\"style\":{\"width\":\"100%\",\"display\":\"block\"},\"mediaText\":\"(max-width: 768px)\",\"atRuleType\":\"media\"},{\"selectors\":[{\"name\":\"gjs-cell\",\"private\":1}],\"style\":{\"width\":\"8%\",\"display\":\"table-cell\",\"height\":\"75px\"}},{\"selectors\":[\"#iqcs\"],\"style\":{\"text-align\":\"center\",\"_