Homework 4
email the answers to the following to instructor,
no later than Nov 27 at any time, and in plain text format
only (no attachments)
- Read file Documentation/CodingStyle in your linux kernel source
tree, then list 3 aspects of the Linux coding style that you normally
follow in your C programming, and 3 that you don't (if you normally
use the Linux coding style in your programming, select the 3 that
you think you follow the least).
- Read about the CP/M operating system at wikipedia.
To get credit for this question, name the three main layers of the
operating system, with a one-line description for each.
- Tanenbaum, p. 264, exercise 4-10. Be sure to answer both parts
of the question -- give an expression, and explain how
realistic this amount is.
- Tanenbaum, p. 450, exercise 6-17, modified as follows. Each
block on disk is 1024 bytes, not 1024KB. The inode contains 10
addresses (block pointers), of which the last one is an indirect
pointer to a block of 1024 bytes containing pointers to blocks. Each
block pointer requires 4 bytes to store. What is the maximum file
size?
- Tanenbaum, p. 450, exercise 6-18, modified as follows. The inode
contains 10 addresses (block pointers), and again each pointer to a
block is 4 bytes.
- Tanenbaum, p. 759, exercise 10-16.