In Sec. 4.8.4, it was pointed out that it would be better to search for holes for

Question:

In Sec. 4.8.4, it was pointed out that it would be better to search for holes for the text and data segments separately. Implement this improvement.


Data from Sec. 4.8.4The code for exec follows the outline of Fig. 4-40. It is contained in the pro- cedure do_exec (line 18747)

#! /bin/sh to show it is to be interpreted by the Bourne shell, or #! /usr/local/bin/perl -wT to be

If it is successful in this, the first part of this line, that is, the path to the binary executable of the

In describing the work of do_exec we mentioned a number of supporting functions provided in exec.c.

necessary in MINIX 3. If sufficient memory is found, the old memory is released and the new memory is

The next two functions work together. We described their purpose earlier. When a script is exec-ed the binary

Environment array 0 HOME=/usr/ast Argument array f1 s.sh 10 t 40 36 sa/r S 32 28 101 f10 24 hs. S 20 0 16 32

segment. Rather than just reading the file block by block and then copying the blocks to the user, a trick is

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Operating Systems Design And Implementation

ISBN: 9780131429383

3rd Edition

Authors: Andrew Tanenbaum, Albert Woodhull

Question Posted: