Unix Unit 5

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

Unit 5- MEMORY MANAGEMENT AND I/O

In "The Design of the Unix Operating System" book-

As per syllabus-
MEMORY MANAGEMENT POLICIES - Chap 9 in text book- Pg 285- Pg 325
THE I/O SUBSYSTEM - Chap 10 in text book- Pg 326- Pg 358 [except Streams (last)
topic in the unit]

- Memory Management Policies- Pg 285 - Pg 325 (unit name)


In Pg 285- learn italics terms

- Swapping- Pg 286- Pg 299


(Sub topics:
Allocation of Swap Space- Pg 286;
Swapping Processes Out- Pg 290 -> Fork Swap, Expansion Swap;
Swapping Processes In- Pg 294)

- Demand Paging– Pg 299- Pg 321


(Sub topics:
Data Structures for Demand Paging- Pg 300 -> Fork in a Paging System, Exec in a
Paging System;
The Page-Stealer Process- Pg 308;
Page Faults- Pg 312 -> Validity Fault Handler, Protection Fault Handler;
Demand Paging on Less-Sophisticated Hardware- Pg 320)

Summary- Pg 321- Pg 322

- EXERCISES- Pg 322- Pg 325

- The I/O Subsystem- Pg 326- Pg 358 (unit name)


In Pg 326- learn italics terms

- Driver Interface- Pg 327- Pg 338


(Sub topics:
System Configuration- Pg 327;
System Calls and the Driver Interface- Pg 329 -> Open, Close, Read and Write ,
Strategy Interface, ioctl, Other File System Related Calls;
Interrupt Handler- Pg 338)

- Disk Drivers- Pg 339- Pg 343

- Terminal Drivers- Pg 343- Pg 358


(Sub topics: clists- Pg 345,
The Terminal Driver in Canonical Mode- Pg 348,
The Terminal Driver in Raw Mode- Pg 353,
Terminal Polling- Pg 355,
Establishment of a Control Terminal- Pg 356,
Indirect Terminal Driver- Pg 357,
Logging In- Pg 357)

Summary- Pg 365- Pg 366 (Learn italics terms, No need of last para in it)

- EXERCISES- Pg 366 - Pg 368- learn all the relevant ones (i.e EXCEPT streams
topic)
---

Solve below from syllabus- (if required)


o Write a program that tracks the allocation of space on a swap device.
o Write a program that verifies that the file systems on a disk do not overlap.
The program should take two arguments: a device file that represents a disk volume
and a descriptor file that gives section numbers and section lengths for the disk
type. The program should read the super blocks to make sure that file systems do
not overlap.
o Implement sty command: with no parameters, it retrieves the values of terminal
settings and report them to the user.
o Encode a line disciple that writes the machine name at the beginning of each line
of output.

You might also like