关于细分到字段的权限系统_操作系统中的细分

关于细分到字段的权限系统

为什么需要细分? (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.mzph.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 表示换行 …