首页 > 其他分享 >Segmentation--basic concepts

Segmentation--basic concepts

时间:2022-11-03 10:55:30浏览次数:37  
标签:Segmentation space -- segments concepts program address segment processor

There is no mode bit to disable segmentation. The use of paging, however, is optional.

 

These two mechanisms (segmentation and paging) can be configured to support simple single-program (or single task) systems, multitasking systems, or multiple-processor systems that used shared memory.

what is segmentation?

segmentation provides a mechanism for dividing the processor’s addressable memory space(called the linear address space) into smaller protected address spaces called segments.

Usage

Segments can be used to hold the code, data, and stack for a program or to hold system data structures (such as a TSS or LDT). If more than one program (or task) is running on a processor, each program can be assigned its own set of segments. The processor then enforces the boundaries between these segments and ensures that one program does not interfere with the execution of another program by writing into the other program’s segments.

The segmentation mechanism also allows typing of segments so that the operations that may be performed on a particular type of segment can be restricted.

How to locate a byte in a particular segment ?

a logical address (also called a far pointer) must be provided.

 

 

A logical address consists of a segment selector and an offset. The segment selector is a unique identifier for a segment. Among other things it provides an offset into a descriptor table (such as the global descriptor table, GDT) to a data structure called a segment descriptor. Each segment has a segment descriptor, which specifies the size of the segment, the access rights and privilege level for the segment, the segment type, and the location of the first byte of the segment in the linear 

address space (called the base address of the segment). The offset part of the logical address is added to the base address for the segment to locate a byte within the segment. The base address plus the offset thus forms a linear address in the processor’s linear address space.

 

If paging is not used, the linear address space of the processor is mapped directly into the physical address space of processor. The physical address space is defined as the range of addresses that the processor can generate on its address bus.

 

标签:Segmentation,space,--,segments,concepts,program,address,segment,processor
From: https://www.cnblogs.com/xiangsplayground/p/16853699.html

相关文章

  • 使用深度强化学习改进POMDP
    论文提出一种ADRQN架构来增强在部分可观测领域的学习表现,架构的特点在于同时考虑动作和观测作为模型的输入。如下图中的模型所示,我们的动作和观测在经过相关的维度变换之......
  • ORACLE命令行获取对象的DDL
    ORACLE命令行获取对象的DDL发现这个功能,非常方便,可以迅速获得数据库对象的创建脚本,特别是在命令行方式。获得的对象创建脚本,略作修改就可以使用,是学习的最佳方法。dbms_m......
  • C++ 反射机制
    前言反射的概念:指程序在运行时,访问、检测和修改它本身状态或行为的一种能力。wikipedia简单的来说,就是一种自描述和自控制的能力。如果联想到镜子,就可以很好的理解,你能通......
  • notepad++下载
    参考:notepad++安装教程_绛橘色de日落的博客-CSDN博客_notepad++安装 1.下载这篇文章的最后有安装包,也有详细教程: notepad++安装教程_绛橘色de日落的博客-CSDN博......
  • springboot 线程池的使用
    线程池可以用于解决单线程干某件事情比较慢的问题AsyncConfigurer:通过实现AsyncConfigurer自定义线程池,包含异常处理实现AsyncConfigurer接口对异常线程池更加细粒度的控制......
  • cloud stream 官方文档阅读笔记3
    核心概念4.1应用模型一个springcloudStream应用包括了一个消息中间件作为核心。某个应用通过springcloudStream使用input和output通道与外界(注:消息队列)进行消息交......
  • cloud stream分区分析
    上一篇博客从使用的角度了解了springcloudstream。现在得知道为什么其可以生效。我们针对分区做了下面的配置:#cloudstream相关spring.cloud.stream.bindings.input.de......
  • cloud stream 使用案例
    实现生产者发送消息,消费者接收消息的demo在你的项目中加入<dependency><groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-starter-stream-ra......
  • HttpClient 调用时的采坑记录及解决办法
    1、首先,https是颁发给域名的,如果采取ip加https访问的机制,会出现证书不安全的问题,直接使用HttpClient去连接会出现客户端无法信任服务器的问题。解决思想:如果我们去调用这......
  • htmlunit设置支持js和 ajax
    免责声明:不要拿爬虫在法律边缘试探简单的说,就是进行如下设置:webclient.getOptions().setUseInsecureSSL(true);//禁用css,一般来说css没啥用webclient.getOptions().setCs......