Register

Homework Help Question and Answers

Submit a new Query

Recent Homework Help Question & Answers


Question 44773

posted 10 months ago

5. (16 points) Consider deadlock avoidance with single resources. Assuming we have 4 process P1,P2, P3, P4. and 4 resources r1, r2, r3, r4. Consider all| 4 processes are writers (i.e. no resources can be shared among processes). Suppose the processes are to acquire and release the release the resources in the following order (and assume the OS has the complete knowledge of the schedule beforehand) – we only show the first 8 requests.
if a request is denied, the process immediately quits and release all resources it is holding/waiting (if any).
if a process have to wait for a resource (if another process is holding it), the avoidance algorithm can still grant the request and allow that process to wait
all waiting queues for each resources are FIFO
a.Draw the resource allocation graph before the first request is made
b. Will the third request (P3 request r3) be granted? Explain your answer using the resource allocation graph.
c. Is there any request after that one that will be denied? If so, show the first request that will be denied and explain why using the resource allocation graph. If not, show the request allocation graph at the of the 8-th request.

View answer

Question 44771

posted 10 months ago

2. (8 points) Consider using an SSD for storing student records
a. Explain why updating student records can potentially take significant more time than adding new student records.
b. All operating systems have buffers that store data to be written to the disk until a page of data is filled before writing to the disk (or until the OS explicitly force the buffer to be written). Name two reasons why using buffers are crucial in the case when appending new student records to the file.

View answer

Question 44774

posted 10 months ago

7. (10 points) Consider the reader-writer problem. The following are two potential solution to the problem .Neither of them work. Explain why.
а.Writer code the same as slide 71 of synchronization, reader code as follows:

View answer

Question 44772

posted 10 months ago

ts) This question is about space allocation method for files on a magnetic hard drive.
a.Contiguous allocation is a way of allocate blocks to files. However, it can suffer from over or under estimation. Describe one problem that each will cause.
b.Another way of allocation is to used linked blocks. The slides suggest using FAT (file allocation table) to improve the performance. How can FAT improve the performance?

View answer

Question 40417

posted 1 years ago

For a memory system consisting of four 2K X 8 ROM chips, you need at least 13 address bits to ensure correct address decoding
True
False

View answer

Question 40418

posted 1 years ago

For a memory system consisting of eight 8K X 8 ROM chips, you need 20 address bits to decode the addresses using one-hot code
O True
False

View answer

Question 40413

posted 1 years ago

For a memory system consisting of four 2K X 32 ROM chips, you need at least 13 address bits to ensure correct address decoding
True
False

View answer

Question 40421

posted 1 years ago

Consider the below assembly code and assume that all memory locations below EA=490A0 store values = (35)16, and higher addresses have (45)16 stored.
DS=4000; DI=90A0; DX=0000 (initially)
MOV AX, 5678
MOV BX, 1232
ADD AX, BX
MOV CX, [DI+8]
The contents of register CX after execution of the above code is:
ADD DX, AX
O (A890)16
O (90A8)16
O (490A8)16
unknown
D (4545)16
O (45)16

View answer

Question 40416

posted 1 years ago

For an in-order-execution pipeline, the following assembly code has true data dependencies that may cause pipeline stalls
False
True

View answer

Question 40420

posted 1 years ago

For a memory system consisting of eight 1KX 16 ROM chips, you need at least 13 address bits to ensure correct address decoding?
O True
OFalse

View answer

Questions not Found

Most popular subject

Thermodynamics

Essay/Summary

Mechanics

Complex Analysis

Engineering Economics

Calculus

Modern Physics

General Chemistry

Strength Of Materials

Fluid Mechanics

x