Skip to content

Latest commit

 

History

History
32 lines (30 loc) · 1.01 KB

README.md

File metadata and controls

32 lines (30 loc) · 1.01 KB

xv6

This is an implementation of MLFQ scheduler, virtual memory layout rearrangement and kernel threads of xv6 operation system.

Each process can create and run at most 8 threads concurrently.

The VM layout now looks like the following

+-------------------------------+  <--- USERTOP
|     Stack of the Process      |  1 PAGE
+-------------------------------+  
|      Guard Page (FREE)        |  1 PAGE
+-------------------------------+
|      Stack of Thread 1        |  1 PAGE
+-------------------------------+
|      Guard Page (FREE)        |  1 PAGE
+-------------------------------+
|                               |
:                               :
:              ^                :
|              |                |
+-------------------------------+  <--- proc->sz
|            Heap               | 
+-------------------------------+
|         Code + Data           |  1 PAGE
+-------------------------------+
|      Guard Page (FREE)        |  2 PAGES
+-------------------------------+