Ask Question, Ask an Expert


Ask Computer Engineering Expert

1. Describe in detail the consistency model of the distributed file system (GFS or AFS). Present the consistency model selected and how it was achieved through design. Clarity of presentation matters, so take your time to formulate your answer clearly.

2. Suppose you are provided a uniprocessor system with one gigabyte of memory and a 300 gigabyte disk. The OS on the machine has a demand paged virtual memory system with a local page replacement policy and a multi-level feedback queue (MLFQ) CPU scheduler. On the system there are two compute-intensive jobs running: Job-A and Job-B. Job-A has a working set of 50 gigabytes while Job-B has a working set of 100 megabytes. Suppose you left the system to execute for a while till it reached a steady state with both jobs running.

a. Which job will you expect to have a higher CPU scheduling priority from MLFQ scheduler?

b. Suppose you add the second CPU to system, how will this affect priorities of the jobs?

c. Suppose you switch from a local to the global page replacement policy, how does this alteration affect priorities of the jobs? Justify your answer and state any assumptions you make.

3. Consider organization of a UNIX file as represented by the inode. Suppose there are 13 direct block pointers and a singly, doubly and triply indirect pointer in each inode. Further, Suppose that system block size and the disk sector size are both 4K. If the disk block pointer is 32 bits, then:

a. Find the maximum file size supported by this system?

b. Supposing no information other than file inode is already in main memory, how many disk accesses are needed to access the byte in position 5Y3+100, where Y=1024?

4.a. Define the term “deadlock”. There are four conditions which should hold before deadlock is possible. Name them.

b. Outline the algorithm which detects whether there is a deadlock. The algorithm must be able to cope with multiple types of resources, each type having a limited number of units available.

c. When must the algorithm be invoked? The answer to this problem might depend on system characteristics like the rate of resource requests, the granularity of resources, and the expected rate of deadlock. List three possible choices and discuss the criteria you will use to choose among them.

5. Assume an instruction takes 1 nanosecond to execute (on average), a page fault takes 20 microseconds of processor time, and it takes 300 microseconds of disk time to read or prepare a single page. Assume that on average, 1/2 of the pages are modified. What is the average number of instructions between page faults which will cause the disk to be busy doing page transfers all the time?

6. List three broad design goals of the ESX memory management system, and briefly outline how the design meets those goals.

7. Consider a system implementing multilevel feedback queue scheduling. What strategy could a computer user employ to maximize amount of CPU time allocated to the user’s process?

8. Your OS has a set of queues, each of which is protected by a lock. To enqueue or dequeue an item, a thread should hold the lock associated to the queue. 

You require to implement an atomic transfer routine which dequeues an item from one queue and enqueues it on another. The transfer should appear to occur atomically. This is your first attempt:

void transfer(Queue *q1, Queue *q2) {
Item thing; /* the thing being transferred */
q1->lock.Acquire(); thing = q1->Dequeue(); if (thing != NULL){
q2->lock.Acquire(); q2->Enqueue(thing); q2->lock.Release();
} q1->lock.Release()

You might suppose that q1 and q2 never refer to the same queue. Also, suppose that you have a function Queue::Address which takes a queue and returns, as an unsigned integer, its address in memory.

a. Describe how using this implementation of transfer leads to deadlock; 

b. prepare a modified version of transfer which avoids deadlock and does the transfer atomically;

c. If the transfer does not require to be atomic, how may you modify your solution to achieve a higher degree of concurrency? Justify how your modification increases concurrency.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M91856

Have any Question? 

Related Questions in Computer Engineering

There is a strong linkage between statistical data analysis

There is a strong linkage between statistical data analysis and data mining. Some people think of data mining as automated and scalable methods for statistical data analysis. Do you agree or disagree with this perception ...

What are the three main goals of the cia security triad and

What are the three main goals of the CIA Security Triad and what are the most common gaps you see exploited today? You may want to consider issues regarding access control in your answer.

Can someone create a simple a powerpoint presentation at

Can someone create a simple a PowerPoint presentation at least five slides in length identifying five different categories of application software? List a description of each type of software with advantages, disadvantag ...

Explain fully the advantages of expanding across borders

Explain fully the advantages of expanding across borders??. Distinguish in detail the reasons and advantages of expanding into different nations through mergers and acquisitions, as opposed to greenfield investments. Dis ...

It was stated that the inclusion of the salt in the unix

It was stated that the inclusion of the salt in the UNIX password scheme increases the difficulty of guessing by a factor of 4096. But the salt is stored in plaintext in the same entry as the corresponding ciphertext pas ...

Define the different defect status and draw a chardgraph to

Define the different defect status and draw a chardgraph to depict the allowable defect status changes based on your knowledge of your actual defect handling process. You may use a hypothetical project and its defect han ...

A linear transformation is defined by the formula

A linear transformation is defined by the formula F(x,y,z)=(x+2y+z,-y+3z). a) Enter a basis of the linear transformation's kernel, as a list of vectors, for example (1,2,3),(2,1,3). b) Enter a basis of the linear transfo ...

Text book - algorithm design by jon kleinberg and eva

Text Book - Algorithm Design by Jon Kleinberg and Eva Tardos Chapter 4 - Greedy Algorithms Exercises Q1. Decide whether you think the following statement is true or false. If it is true, give a short explanation. If it i ...

Answer project question 565 if you have not already done so

Answer Project Question 5.65 if you have not already done so. Design a database for your model in Project Question 5.65(d). Your design should include a specification of tables and attributes as well as primary, candidat ...

The springfield company uses a process costing system

The Springfield Company uses a process costing system. During January the processing department transferred out 49,000 units. The January 31st work-in-process inventory in the processing department consisted of 41,000 eq ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

A cola-dispensing machine is set to dispense 9 ounces of

A cola-dispensing machine is set to dispense 9 ounces of cola per cup, with a standard deviation of 1.0 ounce. The manuf

What is marketingbullwhat is marketing think back to your

What is Marketing? • "What is marketing"? Think back to your impressions before you started this class versus how you

Question -your client david smith runs a small it

QUESTION - Your client, David Smith runs a small IT consulting business specialising in computer software and techno

Inspection of a random sample of 22 aircraft showed that 15

Inspection of a random sample of 22 aircraft showed that 15 needed repairs to fix a wiring problem that might compromise

Effective hrmquestionhow can an effective hrm system help

Effective HRM Question How can an effective HRM system help facilitate the achievement of an organization's strate