Computer Science 284 - Question Pool - Fall 2001
Exam 2
FOR THE PURPOSE OF THIS EXAM, A 'SIGNAL' MEANS A cond_signal AND AN 'INTERRUPT' MEANS A UNIX/KERNEL TYPE signal.
Description |
Answer
|
|
s | number of bits in the segment number portion of the virtual address | |
d | number of bits in the displacement portion of the virtual address | |
p | number of bits in the page number portion of the virtual address | |
f | number of bits in the frame number portion of the physical address | |
frame size (bytes) | ||
segment table entry size (bytes) | ||
page table entry size (bytes) | ||
max physical address | ||
max virtual address | ||
max segment size | ||
max number of entries in segment table | ||
max number of entries in page table |
SOCKETS
What is the practical difference between a 'unix' socket and an 'internet' socket?
What are the functional differences between a 'stream' socket and a 'datagram' socket?
Why can two unrelated processes communicate via a socket but not via a
pipe?
Give your answer in terms of the internal data structures that make it possible
with socket but NOT with pipes.
If a server is blocked in an accept() and an incoming connection() request arrives; explain what happens at the server end.