關于細分到字段的權限系統_操作系統中的細分

關于細分到字段的權限系統

為什么需要細分? (Why Segmentation is required?)

In the Operating System, an important drawback of memory management is the separation of the user's view of memory and the actual physical memory. Paging is the scheme which provides the separation of these two memories.

在操作系統中,內存管理的一個重要缺點是將用戶的內存視圖與實際的物理內存分開。 分頁是提供這兩個內存分離的方案。

The user's view is mapped onto the physical storage. This mapping permits differentiation between logical memory and physical memory.

用戶的視圖已映射到物理存儲上。 此映射允許區分邏輯內存和物理內存。

Operating System may divide the same function into different pages and those pages may or may not be loaded at the same time into the memory and it doesn't care about the User's view of the process. This technique decreases the efficiency of the system.

操作系統可能會將同一功能劃分為不同的頁面,并且這些頁面可能會或可能不會同時加載到內存中,并且它并不關心用戶對進程的看法。 此技術會降低系統的效率。

Segmentation is better than this because it divides the process into the segments.

分段比這更好,因為分段將流程分為多個部分。

什么是細分? (What is Segmentation?)

Segmentation is a memory management technique which supports user's view of memory. This technique of division of a computer's primary memory into sections called segments.

分段是一種內存管理技術,可支持用戶的內存視圖。 將計算機的主內存劃分為稱為段的部分的技術。

細分類型 (Types of Segmentation)

  1. Virtual memory segmentation

    虛擬內存分段

    Each processor job is divided into several segments, It is not essential all of which are resident at any one point in time.

    每個處理器作業都分為幾個部分,所有部分都駐留在任何一個時間點上并不是必須的。

  2. Simple segmentation

    簡單分割

    Each process is divided into many segments, and all segments are loaded into the memory at run time, but not necessarily contiguously.

    每個進程都分為許多段,并且所有段都在運行時加載到內存中,但不一定是連續的。

細分的基本方法 (Basic method for Segmentation)

In a computer system using segmentation, a logical address space can be viewed as multiple segments. The size of the segment may grow or shrink that is it is of variable length.

在使用分段的計算機系統中,邏輯地址空間可以視為多個分段。 段的大小可能會變長或變長。

During execution, each segment has a name and a length. The address specifies both the segment name and the displacement within the segment. The user, therefore, specifies each address by two quantities; segment name and an offset.

在執行期間,每個段都有一個名稱和一個長度。 地址同時指定了段名稱和段內的位移。 因此,用戶用兩個數量指定每個地址。 段名稱和偏移量。

Normally it is implemented as segments are numbered and are referred to by a segment number, in place of a segment name. Thus a logical address consists of two tuples:

通常,它是通過對段進行編號并用段號代替段名稱來實現的。 因此,邏輯地址由兩個元組組成:

< segment – number, offset >

<段–數字,偏移量>

Segment number(s) – It is the total number of bits required to represent the segment.

段號 –是表示段所需的總位數。

Segment Offset(d) – It specifies the number of bits required to represent the size of the segment.

段偏移量(d) –它指定表示段大小所需的位數。

細分的硬件支持 (Hardware support for segmentation)

In the program, the user refers to objects by a two-dimensional address, the actual physical memory is still, of course, a one- dimensional sequence of bytes. Thus we have to define an implementation to map two-dimensional user-defined addresses into one-dimensional physical addresses.

在程序中,用戶通過二維地址引用對象,當然,實際的物理內存仍然是一維字節序列。 因此,我們必須定義一種將二維用戶定義地址映射為一維物理地址的實現。

This mapping is affected by a segment table. In the segment table, each entry has a segment base and a segment limit.

此映射受段表的影響。 在細分表中,每個條目都有一個細分基準和一個細分限制。

Segment Base – It contains the starting physical address where the segment kept in memory.

段基礎 –它包含段保留在內存中的起始物理地址。

Segment Limit – It specifies the length of the segment.

網段限制 –指定網段的長度。

The use of the segment table illustrated in this figure:

該段表的用法如圖所示:

Segmentation Hardware


Segmentation Hardware

細分硬件

  • The logical address consists of two parts: a segment number (s) and an offset (d) into that segment.

    邏輯地址由兩部分組成:一個段號和到該段的偏移量d。

  • The segment number used as an index into the segment table.

    用作段表索引的段號。

  • The offset d of the logical address must be between 0 and the segment limit.

    邏輯地址的偏移d必須在0和段限制之間。

  • If offset is beyond the end of the segment, we trap the Operating System.

    如果偏移量超出了該段的末尾,我們將捕獲操作系統。

  • If offset is in the limit, then it is combined with the segment base to produce the address in physical memory, hence the segment table is an array of base limit and register pairs.

    如果偏移量在限制范圍內,則將其與段基地址組合以在物理內存中產生地址,因此段表是基極限制和寄存器對的數組。

細分的優勢 (Advantages of Segmentation )

  • There is no internal fragmentation.

    沒有內部碎片。

  • Segment Table is used to record the segments and it consumes less space in comparison to the Page table in paging.

    段表用于記錄段,與分頁中的頁表相比,它消耗的空間更少。

細分的缺點 (Disadvantage of Segmentation )

  • At the time of swapping, processes are loaded and removed from the main memory, then the free memory space is broken into small pieces, cause of this occurs External fragmentation.

    交換時,將進程加載到主內存中并從主內存中刪除,然后將可用內存空間分解成小塊,這是導致外部碎片的原因。

翻譯自: https://www.includehelp.com/operating-systems/segmentation.aspx

關于細分到字段的權限系統

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/540805.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/540805.shtml
英文地址,請注明出處:http://en.pswp.cn/news/540805.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

計算機科學技術專業解析,專業解讀—計算機科學與技術

原標題&#xff1a;專業解讀—計算機科學與技術專業培養目標&#xff1a;本專業培養具有良好的科學素養&#xff0c;系統地、較好地掌握計算機科學與技術包括計算機硬件、軟件與應用的基本理論、基本知識和基本技能與方法&#xff0c;能在科研部門、教育單位、企業、事業、技術…

阿里云服務器配置開發環境第五章:Centos7.3切換為iptables防火墻

centos7.3默認使用的防火墻應該是firewall&#xff0c;而不是iptables。而我們xxmj服務器使用的是iptables防火墻。所以&#xff0c;在配置防火墻之前&#xff0c;我們需要先關閉firewall&#xff0c;安裝iptables。 1.關閉firewall service firewalld stop systemctl disable …

mba學什么書_MBA的完整形式是什么?

mba學什么書MBA&#xff1a;工商管理碩士 (MBA: Master of Business Administration) MBA is an abbreviation of a Master of Business Administration. It is a masters degree for post-graduation in business administration. This business masters degree program is a …

Qt for Android 開發大坑

Qt for Android 開發大坑 作者: qyvlik Qt 5.5.1 這里說一說比較常見的 Qt 開發安卓的大坑。希望同學們不要做無謂的掙扎&#xff0c;跳過這些坑。輸入框 首當其沖的是輸入框&#xff0c;Qt 的輸入在安卓上表現不佳. 無法支持安卓原生的輸入法訪問 Qt 的輸入框。就是安卓輸入法…

bca ac如何聯合索引_BCA的完整形式是什么?

bca ac如何聯合索引BCA&#xff1a;計算機應用學士學位 (BCA: Bachelor of Computer Applications) BCA is an abbreviation of Bachelor of Computer Applications. It is a three-year undergraduate program in Computer applications. It is considered equivalent to B.Te…

path r'c test.html',robot framework - robot命令參數解析

robot 命令參數解析version > 3.0.1原文檔查看命令:robot --helprobot -h-F --extension value通過文件擴展名控制需要執行的用例。如果只執行一個文件&#xff0c;這個參數無效。需要執行多個擴展名時&#xff0c;用“:”分隔開。Examples:--extension robot-F robot:txt-N…

嘿,程序員,你該學點經濟學了!

前言&#xff1a; 筆者一直認為&#xff0c;一個好的程序員&#xff0c;不僅僅是代碼敲得好&#xff0c;其它方面的知識和能力相同非常重要。特別是隨著年齡的增長。非常多人也慢慢的往管理層發展。這個時候溝通與協調能力變得更加重要&#xff0c;而一些策劃&#xff0c;推廣方…

linux硬件配置_Linux硬件配置

linux硬件配置What sort of hardware configuration is expected to run Linux? This is a decent question; the real hardware configuration for the OS changes intermittently. The Linux Hardware?HOWTO gives a (pretty much) complete posting of hardware supported…

重郵2019計算機考研復試名單,重慶郵電大學2019年碩士研究生招生復試通知

當前2019年考研分數線已經公布&#xff0c;穩穩過線的同學即可全心準備復試了&#xff0c;中公考研小編整理了“重慶郵電大學2019年碩士研究生招生復試通知”文章&#xff0c;希望對大家有所幫助!各復試考生&#xff1a;根據《2019年重慶郵電大學碩士研究生復試工作方案》&…

Linux相關圖解隨記

01.dns解析過程02.用戶訪問網站流程03.局域網電腦上網流程04.網站架構圖解轉載于:https://blog.51cto.com/qinbin/1954149

數據庫范式5nf_第五范式(5NF)| 數據庫管理系統

數據庫范式5nfFifth normal form (5NF) is also known as project-join normal form (PJ/NF). It is designed to minimize redundancy in relational databases by separating semantically connected relationships in multiple formats to store multi-valued facts. 第五范…

量子物理 詹班 計算機,(電氣系計算機系詹班)量子物理作業答案

西南交大峨眉校區大學物理西南交大峨眉校區《大學物理》(量子物理基礎)作業6(電氣、計算機、詹班)一 選擇題1. 以一定頻率的單色光照射在某種金屬上&#xff0c;測出其光電流曲線在圖中用實線表示&#xff0c;然后保持光的頻率不變&#xff0c;增大照射光的強度&#xff0c;測出…

MySQL5.6 新特性之GTID【轉】

轉自 MySQL5.6 新特性之GTID - jyzhou - 博客園http://www.cnblogs.com/zhoujinyi/p/4717951.html 背景&#xff1a; MySQL5.6在5.5的基礎上增加了一些改進&#xff0c;本文章先對其中一個一個比較大的改進"GTID"進行說明。 概念&#xff1a; GTID即全局事務ID&#…

python判斷素數程序_Python程序檢查素數

python判斷素數程序什么是質數&#xff1f; (What is a prime number?) A prime number is a natural number that is greater than 1 and cannot be formed by multiplying two smaller natural numbers. 質數是大于1的自然數&#xff0c;不能通過將兩個較小的自然數相乘而形…

計算機高級工程師職稱評定條件,高級工程師職稱評定條件是什么

高級工程師職稱評定條件是什么&#xff0c;高級工程師職稱有什么作用&#xff0c;以下是小編整理的高級工程師職稱評定條件相關內容&#xff0c;供您參考。高級工程師評定條件1、本科畢業及以上&#xff0c;獲得工程師資格5年以上&#xff0c;可以申報高級工程師。2、博士畢業&…

c# datetime._C#| DateTime.Year屬性與示例

c# datetime.DateTime.Month屬性 (DateTime.Month Property) DateTime.Month Property is used to get the year component of this object. Its a GET property of DateTime class. DateTime.Month屬性用于獲取此對象的年份組成部分。 這是DateTime類的GET屬性。 Syntax: 句法…

NO6——KMP

1 int next[N];2 char str1[M],str2[N];3 //str1 長&#xff0c;str2 短4 //len1,len2,對應str1,str2的長5 6 void get_next(int len2)7 {8 int i 0,j -1;9 next[0] -1;10 while(i<len2)11 {12 if(j -1 || str2[i] str2[j])13 {14 …

計算機文化基礎第二章,計算機文化基礎(第二章Windows2000操作系統)

計算機文化基礎(第二章Windows2000操作系統)第二章Windows 2000 操作系統1. 打開“資源管理器”的方法不能是_A右擊“開始”按鈕 B選擇“開始” 、 “程序”菜單 C從“我的電腦”的快捷菜單 D從“控制面板”中選擇2. 在“資源管理器”中選定多個文件的方法不能是_A逐個雙擊要選…

r語言簡介_R語言簡介

r語言簡介R is a language and environment for statistical computing and graphics that is supported by the R Foundation for Statistical Computing. It is a GNU project which is similar to the S language and environment developed at Bell Laboratories by John C…

linux中echo的使用方法

1.echo命令我們經常使用的選項有兩個&#xff0c;一個是-n&#xff0c;表示輸出之后不換行。另外一個是-e&#xff0c;表示對于轉義字符按對應的方式處理&#xff0c;假設不加-e那么對于轉義字符會按普通字符處理。 2.echo輸出時的轉義字符 \b 表示刪除前面的空格 \n 表示換行 …