Ask Computer Engineering Expert

Question1 

a) Consider a scenario where a computer system has a small number ofactiveprocesses using a large amount of their virtual address space, i.e., the systemisrunning a small number of very large applications/processes. Mostmodern computers support more than one size for page frames, e.g., modern x86-64capable CPUs can support 4KB, 2MB, or even 1GB. Discuss how (i) a smaller page framesizeand (ii) a larger page frame size would impact the performance of the abovesystem.

b) Each page that is mapped into the virtual memory of a process has permissionssuchas read, write, and/or execute associated with it. Explain the benefits of havingsuchpermissions associated with each page, and what would happen if thesepermissionswere breached, e.g., a process attempted to write to a page that did not havethe write permissiongranted.

c) Consider a scenario where the memory of the computer has a total of threephysicalpage frames and the following sequence of page references aregenerated:

1, 2, 3, 4, 1, 2, 3, 2, 1, 4, 1, 2, 3, 4, 5, 6, 5, 4, 3,1

i) Prepare tables/diagrams demonstrating the operation of the optimal,FIFO, and LRU page replacement algorithms for the abovescenario;

ii) Identify how many page faults occur for each algorithm; and

iii) LRU is commonly used because it's performance is close to optimal.Explain why (1) optimal itself is not used, and (2) why LRU's performance is closeto optimal.

Question2

a) Explain the concept of a critical region and how critical regions occur (i)whenpseudo-concurrency is used, and (ii) when physical concurrency is used.

b) In the class slides for Week 6, on Slide 31 a scenario is presented demonstratingwhere a deadlock could occur using two semaphores. Explain how deadlockcould occur if only one semaphore wereused.

c) Consider a scenario where an organisation has been using the same softwarereliablyfor many years. The software does not include any mechanisms for managingdeadlock, i.e., there is no deadlock recovery, avoidance, or preventionmechanisms in place. Recently the organisation upgraded their hardware, which among otherimprovements also included an upgrade from a single-core CPU to a multi-coreCPU.After the upgrade, the software the organisation has been using reliably nowregularly experiences deadlock. Explain why this scenario is possibleand recommend an approach to solving it.

d) Consider the following information about resource usage:


Allocation A B C

A

Max B

C

AvailableA B C

P0

1

2

2

9

8

8

2 2

2

P1

1

1

2

4

3

3



P2

2

1

1

2

1

7



P3

2

2

1

3

3

2



P4

2

2

2

7

7

7



Using the Banker'sAlgorithm:

i. Demonstrate that the system is in a safe state.

ii. Demonstrate that the system would not be in a safe state if a request forone C resource was granted toP2.

iii. If process P2were to request one C resource, as suggested in (ii), thesystemwould not deadlock. Explain.

Question3

a) Executable files are regular files that follow a particular format (see Week 8 Slide11). Would it be possible for two different operating systems running on the sametypeof hardware to share the same executables, e.g., Linux and FreeBSD running on an x86-64 PC? Explain.

b) A friend of yours has made an amazing discovery when searching their computerfora file. They are looking for a file that they modified some time ago. They attempted to search for the file using the file name, then attempted to search for the file usingthe approximate date/time the file was last modified. Although both searcheswereunsuccessful, returning no results, they were surprised to discover that searchingbased on the approximate date/time, which would be a numerical comparison,tookmuch longer than the file name comparison, which would be a string comparison. Given that comparing numbers should be much faster than textual strings, explain how each of these searches would work, and why there is a difference betweenthetimes.

c) A file system can be configured to use a block size independent of any disksectorsize (see Week 9 Slide 6). Consider a scenario where the file system is reconfigured to use a smaller block size in an attempt to increase the available/free disk space,however the disk space is actually reduced. Explain how this scenario could occur. In your answer, explain the relationship between file system block size and diskspace wasted per file.

d) Consider partitioning the disk for a Linux installation to maximise performance with the following partition requirements: the boot partition (1GB), the root filesystem(5GB), the /usr folder (20GB), the /home folder (100GB), and the swap partition used for paging to disk (24GB). The disk will be used in a system used to run largecomputation tasks which regularly use more memory than the computer has RAM. Your tasks are asfollows:

i) Consider how the partitions should be laid out on the disk and draw afigureillustrating the logical layout you have designed, e.g., the followingfigureshows how you might draw the logical layout (note that this examplealso represents an incorrectanswer).

/

/usr

/home

Swap

Boot

ii) Explain why you laid out the partitions of the disk in the manner youchoseand why it is suitable for a computer running large computation tasks.

MarkingScheme

Question 1 -

  • Part (a)
    • Explanation of how smaller page frame size impacts performance.
    • Explanation of how larger page frame size impacts performance.
  • Part (b)
    • Explanation of benefits for associating permissions with each page.
    •  Explanation of what happens upon breach of permission.
  • Part (c)
    • (i) Correct optimal / FIFO / LRU diagrams.
    • (ii)  Correct number of page faults for optimal / FIFO / LRU.
    • (iii) Explanation of why optimal is not used; explanation ofwhyLRU is close to optimal.

Question 2 -

  • Part (a)
    •   Explanation of critical regions.
    •   Explanation for critical regions and pseudo-concurrency.
    • Explanation for critical regions and physical concurrency.
  • Part (b)
    • Correctly identify how deadlock could occur with one semaphore.
    •  Explanation of how deadlock could occur.
  • Part (c)
    •   Explanation of why deadlock didn't occurpreviously.o (3 marks) Explanation of why deadlock occurs afterupgrade.
    •  o Discussion of proposedsolution.
  • Part (d)
    • (i)  Correct working for each step of execution for safe state.
    • (ii) Correct working demonstrating unsafe state.
    • (iii)  Explanation of why the system will not deadlock.

Question 3 -

  • Part (a)
    •   Correctly identifies whether executable files could be shared between different operatingsystems.
    •   Explanation of why executable files could/could not be shared.
  • Part (b)
    • Explanation of how filename vs date/time searcheswork.
    • Explanation of why file name searches would take less time.
  • Part (c)
    •   Explanation of the relationship between file system block sizeand disk space wasted perfile.
    •   Explanation of how reducing the file system block size could reducethe available/free diskspace.
  • Part (d)
    •   Design of partition layout illustrated in reasonable figure/diagram.
    •   Explanation/justification of design of partition layout.
    • Explanation of suitability of partition layout for largecomputation tasks.

Computer Engineering, Engineering

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

Have any Question?


Related Questions in Computer Engineering

Does bmw have a guided missile corporate culture and

Does BMW have a guided missile corporate culture, and incubator corporate culture, a family corporate culture, or an Eiffel tower corporate culture?

Rebecca borrows 10000 at 18 compounded annually she pays

Rebecca borrows $10,000 at 18% compounded annually. She pays off the loan over a 5-year period with annual payments, starting at year 1. Each successive payment is $700 greater than the previous payment. (a) How much was ...

Jeff decides to start saving some money from this upcoming

Jeff decides to start saving some money from this upcoming month onwards. He decides to save only $500 at first, but each month he will increase the amount invested by $100. He will do it for 60 months (including the fir ...

Suppose you make 30 annual investments in a fund that pays

Suppose you make 30 annual investments in a fund that pays 6% compounded annually. If your first deposit is $7,500 and each successive deposit is 6% greater than the preceding deposit, how much will be in the fund immedi ...

Question -under what circumstances is it ethical if ever to

Question :- Under what circumstances is it ethical, if ever, to use consumer information in marketing research? Explain why you consider it ethical or unethical.

What are the differences between four types of economics

What are the differences between four types of economics evaluations and their differences with other two (budget impact analysis (BIA) and cost of illness (COI) studies)?

What type of economic system does norway have explain some

What type of economic system does Norway have? Explain some of the benefits of this system to the country and some of the drawbacks,

Among the who imf and wto which of these governmental

Among the WHO, IMF, and WTO, which of these governmental institutions do you feel has most profoundly shaped healthcare outcomes in low-income countries and why? Please support your reasons with examples and research/doc ...

A real estate developer will build two different types of

A real estate developer will build two different types of apartments in a residential area: one- bedroom apartments and two-bedroom apartments. In addition, the developer will build either a swimming pool or a tennis cou ...

Question what some of the reasons that evolutionary models

Question : What some of the reasons that evolutionary models are considered by many to be the best approach to software development. The response must be typed, single spaced, must be in times new roman font (size 12) an ...

  • 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

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As