Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

During an exec call in Minix, it tests for an adequate hole before releasing the

ID: 3533625 • Letter: D

Question

During an exec call in Minix, it tests for an adequate hole before releasing the current process memory. Reprogram this algorithm to do better.

Steps in Minix now:
1)Check permissions-is the file executable?
2)Read the header to get the segment and total sizes.
3)Fetch the arguments and environment from the caller.
4)Allocate new memory and release unneeded old memory.
5)Copy stack to new memory image.
6)Copy data(and possibly text) segment to new memory image
7)Check for and handle setuid, setgid bits.
8)Fix up process table entry.
9)Tell kernel that process is now runnable.

I was thinking to use a linked list to keep track of holes but didn't know where to start.

Explanation / Answer

1)chmod 2)ls 3)ls -a 4)malloc 5)cp a.txt b.txt 6)ctrl+c ctrl+v 7)Do it manually 8)man fix 9)gcc a.txt(your filename) I think this is the best possible algorithm please rate me alifesaver

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote