1) (Problem 2.49) Assume that you have an operating system that provides semaphores.
Implement a message-passing system. Write the procedures for sending and receiving
2) (Problem 2.47 modified) You are implementing an online product database. Y
1) How did you install MINIX? Are you using a simulator? If so, which one? What issues did you
notice during install?
2) (Problem 1.3) On early computers, every byte of data read or written was handled by the
CPU (i.e. there was no DMA). What implications
import static java.lang.System.*;
class huffman cfw_
private static final String STDIN_NAME = "-";
private static final String VISFMT = "%6d
private static final String HEXFMT = "%6d x%02X 0";
/ Open a file by filename or use st
static final int MAX_CODE = 5;
public static void main(String args) throws Exceptioncfw_
Scanner in = new Scanner(new File(args);
int sentenceCode, modifierCode;
1) In Linux what happens to the child processes when the parent process terminates?
2) Explain the difference between a web server that uses fork() (multithreaded model) and a
web server that uses select() (event model).
3) (Problem 2.4) When an interrupt
1) (Problem 3.20 modified) A student in a compiler design course (CMPS 104A) proposes to the
professor a project of writing a compiler that will produce a list of page references that can be
used to implement the optimal page replacement algorithm. Is thi
1) (Problem 4.7 modified) A simple operating system only supports a single directory but allows
that directory to have arbitrarily many files with arbitrarily long file names. Can something
approximating a hierarchical file system be simulated? How? How w
1) (Problem 4.6) CPU architects know that operating system writers hate imprecise interrupts.
One way to please the OS folks is for the CPU to stop issuing new instructions when an
interrupt is signaled, but allow all the instructions currently being exec
1) (Problem 2.11 modified) Why would a thread ever voluntarily give up the CPU by
calling thread_yield()? It may never get the CPU back.
Often times, programs are written to have different threads. It is the
programmer's job to determine when a thread sho
public static void main( String args )cfw_
double Lotheight, Lotwidth, Lotarea, Lawnarea, Househeight, Housewidth,
Scanner sc = new Scanner(System.in);
/Request the number in the lot