A Question encountered during the experiment on minix3.1.0

Skip to first unread message


Dec 6, 2021, 9:36:35 AM12/6/21
Dear Andrew S. Tanenbaum professor and Dear predecessors:
I'm a college student in Nanjing Xiaozhuang University/Jiangsu/China. I modified the alloc.c in /usr/src/servers/pm folder. Only modified the alloc_mem function. Detailed code, I have managed to GitHub.
【This is the modified detailed code-alloc.c's url link: https://github.com/Jaya0455/os-experiments-code-notes/blob/master/ex6/alloc.c
After modifying alloc.c, I entered the command to change the directory to /usr/src/tools folder. then entered the command: "make image && make install" to install the new Minix3.1.0. Next I entered the command: "shutdown && boot c0d0p0" to restart the os.
After entering the Minix3.1.0, I tapped the command: "ls" to verify that MINIX memory management adopts the first adaptation algorithm of dynamic partition allocation. The results are shown in the
attachment picture.
【the picture's url link: https://drive.google.com/file/d/1FxhLXnm2GmzfD_IFQkeLpul0DVuWnZU6/view?usp=sharing
From the results, we can see that the operating system allocated memory blocks to the process twice. However, the ls command should only create one process. I don't understand the reason why the operating system allocates memory blocks for the process twice. My operating system teacher and search engines can't answer my doubts. So I take the liberty to find your email on the Internet and think about asking you for advice. I look forward to your reply.
Reply all
Reply to author
0 new messages