This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
The community reviewed whether to reopen this question 2 years ago and left it closed:
Original close reason(s) were not resolved
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(4)
外部碎片
总内存空间足以满足请求或在其中驻留进程,但它不是连续的,因此无法使用。
内部碎片
分配给进程的内存块更大。 内存的某些部分未被使用,因为它不能被其他进程使用。
External fragmentation
Total memory space is enough to satisfy a request or to reside a process in it, but it is not contiguous so it can not be used.
Internal fragmentation
Memory block assigned to process is bigger. Some portion of memory is left unused as it can not be used by another process.
首先,术语碎片暗示存在一个被分成多个部分的实体——碎片。
内部碎片:典型的纸质书是页面的集合(文本分为页面)。 当一章的结尾不在页面的末尾并且新的章节从新的页面开始时,这些章节之间存在间隙,这是空间的浪费 - 一个块(一本书的页面)内部有未使用的空间 /em> (内部) —“空白”
外部碎片:假设你有一本纸质日记,但你没有一页一页地按顺序写下你的想法,但是,相当随机。 你可能会遇到这样的情况:你想连续写 3 页,但你不能,因为没有 3 页一页一页的干净页,你的日记中可能总共有 15 页干净页,但是它们不连续
First of all the term fragmentation cues there's an entity divided into parts — fragments.
Internal fragmentation: Typical paper book is a collection of pages (text divided into pages). When a chapter's end isn't located at the end of page and new chapter starts from new page, there's a gap between those chapters and it's a waste of space — a chunk (page for a book) has unused space inside (internally) — "white space"
External fragmentation: Say you have a paper diary and you didn't write your thoughts sequentially page after page, but, rather randomly. You might end up with a situation when you'd want to write 3 pages in row, but you can't since there're no 3 clean pages one-by-one, you might have 15 clean pages in the diary totally, but they're not contiguous
我是一个只在 10mb 分区中分配内存的操作系统。
内部碎片
满足此请求只会导致 3mb 内部碎片。
外部碎片
满足这个请求刚刚导致了外部碎片
I am an operating system that only allocates you memory in 10mb partitions.
Internal Fragmentation
Fulfilling this request has just led to 3mb of internal fragmentation.
External Fragmentation
Fulfilling this request has just led to external fragmentation
大概来自此网站:
Presumably from this site: