Memory Management


Separation of Policy and Mechanism (1)



tải về 1.77 Mb.
trang7/9
Chuyển đổi dữ liệu10.05.2023
Kích1.77 Mb.
#54663
1   2   3   4   5   6   7   8   9
Chapter03-Memory Management
Lab1 SE171918

Separation of Policy and Mechanism (1)

  • Memory management system is divided into three parts
  • A low-level MMU handler.
  • A page fault handler that is part of the kernel.
  • An external pager running in user space.
  • Tanenbaum & Bos, Modern Operating Systems: 4th ed., Global Edition (c) 2015 Pearson Education Limited. All rights reserved.

Separation of Policy and Mechanism (2)

  • Figure 3-29. Page fault handling with an external pager.
  • Tanenbaum & Bos, Modern Operating Systems: 4th ed., Global Edition (c) 2015 Pearson Education Limited. All rights reserved.

Segmentation (1)

  • Examples of tables generated by compiler:
  • The source text being saved for the printed listing
  • The symbol table, names and attributes of variables.
  • The table containing integer and floating-point constants used.
  • The parse tree, syntactic analysis of the program.
  • The stack used for procedure calls within compiler.
  • Tanenbaum & Bos, Modern Operating Systems: 4th ed., Global Edition (c) 2015 Pearson Education Limited. All rights reserved.

Segmentation (2)

  • Tanenbaum & Bos, Modern Operating Systems: 4th ed., Global Edition (c) 2015 Pearson Education Limited. All rights reserved.

Segmentation (3)

  • Figure 3-31. A segmented memory allows each table to grow or shrink independently of the other tables.
  • Tanenbaum & Bos, Modern Operating Systems: 4th ed., Global Edition (c) 2015 Pearson Education Limited. All rights reserved.

Segmentation (4)

  • Figure 3-32. Comparison of paging and segmentation
  • Tanenbaum & Bos, Modern Operating Systems: 4th ed., Global Edition (c) 2015 Pearson Education Limited. All rights reserved.

tải về 1.77 Mb.

Chia sẻ với bạn bè của bạn:
1   2   3   4   5   6   7   8   9




Cơ sở dữ liệu được bảo vệ bởi bản quyền ©hocday.com 2024
được sử dụng cho việc quản lý

    Quê hương