













Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!














Write your answer here:____
A. no buffering B. double buffering C. a buffer queue D. none of the above
Write your answer here:____
A. 8 milliseconds B. 64 milliseconds C. 32 milliseconds D. none of the above
Write your answer here:____
A. Having one IO-bound process and {\it n} CPU-bound process B. Having mixed balance between IO bound and CPU bound processes C. Having {\it n} IO-bound processes and one CPU-bound process
Write your answer here:____
A. catching SIGKILL B. specifying action to be taken for a specific signal C. changing signal from UNBLOCKED to BLOCKED signal
Write your answer here:____
A. 100% B. 50% C. 20%
Write your answer here:____
repeat flag[i] := true ; while (flag[j]) do no-op ;
flag[i] := false ;
until false ;
This solution does NOT satisfy :
A Mutual Exclusion B Progress C Bounded Wait D both (b) and (c) E none of the above
Write your answer here:____
A. 16 B. 264 C. 520 D. 1032 E. 5004
Write your answer here:____
E. More than 5
Write your answer here:____
A. Mutual Exclusion B. Hold and wait C. No preemption D. Circular wait E. Starvation
Write your answer here:____
A. Mutual Exclusion B. Hold and wait C. No preemption D. Circular wait E. Starvation
Write your answer here:____
A. Mutual Exclusion B. Hold and wait C. No preemption D. Circular wait E. Starvation
Write your answer here:____
A. Mutual Exclusion B. Hold and wait C. No preemption D. Circular wait E. Starvation
Write your answer here:____
For questions 17 and 18: Consider a simple one-level paging system with the following parameters: page size of 16 Kbytes; 64 bit logical address space; each page table entry takes 8 bytes.
A. 2^40 B. 2^48 C. 2^50 D. 2^52 E. 2^53
Write your answer here: ___
A. 2^40 B. 2^48 C. 2^50 D. 2^52 E. 2^53
Write your answer here:____
A. Master boot record. B. Super block. C. Free-space management information. D. inode data. E. Directory names.
Write your answer here:____
A. Latency of moving the disk head B. Time required to access one block from the disk C. Latency of moving the disk head plus the average rotational delay D. Latency of moving the disk head plus the maximal rotational delay
Write your answer here:____
A. Between 0 and 1.9 ms B. Between 2.0 and 2.4 ms C. Between 2.5 and 2.9 ms D. Between 3.0 and 4.9 ms E. Between 5.0 and 10.0 ms
Write your answer here:____
A. A page of size 2^13 bytes implies a page offset of 13 bits. B. The TLB must be flushed during a process context switch. C. A page table converts a logical page number to a physical page number. D. Logical pages of different processes can be mapped to the same physical page. E. A TLB miss will generate a page fault.
Write your answer here:____
A. one-way asymmetric connection B. one-way symmetric connection C. two-way symmetric connection D. two-way asymmetric connection
Write your answer here:___
CS 241 Netid :__________________
3A) List and briefly explain 2 features that TCP provides that UDP does not [4 points].
i)
ii)
3B) Briefly explain one advantage of using TCP instead of UDP to perform a file transfer [ Point]
3C) Briefly explain one advantage of using UDP instead of TCP to stream video content. [ Point]
3D) Briefly explain the purpose of the TTL field in the IP header. [1 Point]
3E) An application creates a UDP packet with a ”TTL” number of 5. Under what conditions would this packet arrive at the destination? [1 Point]
3F) A web-server queues incoming HTTP requests in a FIFO queue. A new request arrives on average every 200 milliseconds. There are on average 10 requests in the queue. Use Little’s law to calculate the average response time of the web-server (please show your work). [2 Points] The formulae