Self Studies

Operating System Test 5

Result Self Studies

Operating System Test 5
  • Score

    -

    out of -
  • Rank

    -

    out of -
TIME Taken - -
Self Studies

SHARING IS CARING

If our Website helped you a little, then kindly spread our voice using Social Networks. Spread our word to your readers, friends, teachers, students & all those close ones who deserve to know what you know now.

Self Studies Self Studies
Weekly Quiz Competition
  • Question 1
    1 / -0
    The working set model is used in memory management to implement the concept of:
    Solution

    Concept:

    The working set model: The memory that is being accessed frequently by an application.

    Same thing is done by principle of locality.

    Explanation:

    There are two types of principle of locality

    1. Spatial locality: whenever we are looking for an element the chances are that, the particular element will be present in a close proximity around the one which we have previously referred.
    2. Temporal locality: Least recently used element is going to be used again.


    Principle of locality is the correct answer, hence option 3 is the correct answer.

  • Question 2
    1 / -0

    If a logical address space of 128 pages of 1024 words each is mapped onto a physical memory of 64 frames, then the number of bits in logical space and physical address space in bits are respectively

    Solution

    Data:

    number of pages = 128

    size of page/frame = 1024 word

    number of frames = 64

    Calculation:

    size of logical address = number of pages × size of page

    size of logical address = 128 × 1024 words = 217  words

    number of bits = log2217  = 17 bits

    size of physical address = number of frames × size of a frame

    size of physical address = 64 × 1024 words = 216 word

    number of bits = log2216  = 16 bits

  • Question 3
    1 / -0

    In a computer system, the physical address space is 32 bits. The size of the pages is 4 KB. The maximum size of the page table of a process is 72 MB. Each table entry of page contains 2 permission bit,1 valid bit, 1 dirty bit along with the translation bits. What is the length of the virtual address supported by the given computer system? (answer in bits)

    Solution

    Data:

    PAS = 32 bits

    Page size = 4 KB

    Page table size = 72 MB

    Formula:

    number of frames = \(\frac{Physical \;address}{page\;size}\)

    Calculation:

    number of frames = \(\frac{2^{32}}{2^{12}} = 2^{20}\)

    translation = 20 bits

    entry of page table = 2 + 1 + 1 + 20 = 24 bits = 3 byte

    number of pages = \(\frac{page\;table\;size}{page \;table\; entry \;size} = \frac{72 \;MB}{3} =24 \;M\)

    Virtual address = number of pages × page size = 24 × 220 × 4 KB 

    Virtual address = 96 × 230 B

    length of virtual address space = log96 × 230 = 37 bits

  • Question 4
    1 / -0
    A two-level paging scheme uses a Translation lookaside Buffer (TLB). A TLB access takes 10 ns and the main memory access takes 100 ns. What should be the TLB hit ratio (in %), so that effective access time (EAT) is no more than 150 ns?
    Solution

    Data:

    main memory = 100 ns

    TLB  = 10 ns

    EAT = 150

    Formula:

    EAT = ht × (tb + tm) + (1 – ht) (tb + (n + 1) tm)

    Calculation:

    150 ns = ht × (10 ns + 100 ns) + (1 – ht) (10 ns + 3 × 100 ns)

    150  = 110 ht + 310  – 310 ht

    160 ns = 200 ht

    h= 0.8  

    h= 80%  

    Important Points:

    EAT → Average effective memory access time

    h→ Hit ratio of TLB

    t→ TLB access time

    tm → Main memory access time

  • Question 5
    1 / -0
    Consider allocation of memory to a new process. Assume that none of the existing holes in the memory will exactly fit the process’s memory requirement. Hence, a new hole of smaller size will be created if allocation is made in any of the existing holes. Which one of the following statements is TRUE?
    Solution

    Concept:

    Best fit allocation:

    The best fit allocation strategy chooses the smallest available memory partition that can satisfy the memory requirement. It creates the smallest hole.

    First fit allocation:

    The first fit chooses the first available memory partition that can satisfy the requirement.

    Worst fit allocation:

    The worst fit allocation strategy chooses the largest available memory partition that can satisfy the memory requirement. It creates the largest hole.

    Next fit allocation:

    It works same as First Fit, the only difference it maintain a pointer to all last allocated memory space to the process and begins it search from there if new request is arrived, unlike first fit which start will initial memory space.

    Explanation:

    Option 1 and Option 4 : FALSE

    The hole created by first fit may or may not be larger than the hole created by next fit

    Option 2: FALSE

    The hole created by worst fit is always larger than or equal to the hole created by first fit

    Option 3: TRUE

    The hole created by best fit could never be larger than the hole created by first fit.

     Although it may be equal.
  • Question 6
    1 / -0
    A CPU generates 48-bit virtual addresses. The page size is 32 KB. The processor has a translation look-aside buffer (TLB) which can hold a total of 1024 page table entries and is 2-way set associative. The minimum size of the TLB tag is ________bits.
    Solution

    Data:

    Size of one page = 32 KB = 215 B

    Virtual address space = 48 bits

    number of entries in TLB = 1024

    2 -way set associative

    Formula:

    set = \(\frac{entries}{k-way}\)
    Virtual address = tag + set + page offset (in bits)

    Calculation:

    set = \(\frac{1024}{2} = 2^{9}\)

    48 = tag + 9 + 15

    ∴ tag = 24

  • Question 7
    1 / -0
    Consider a system with word-addressable memory in which a word is of 4 byte, 32-bit logical addresses memory, 1 kilobyte page size and page table entries of 8 bytes each. What is the size of the page table in the system in Mega word?
    Solution

    Data

    1 word = 4 byte

    Logical address = 232 word

    page size = 210 KB = 28 word

    page table entry (PTE) = 8 bytes = 2 word

    Formula:

    Page table size (PTS) = number of pages × PTE

    Calculation:

    number of pages = \(\frac{{{2^{32}}}}{{{2^{8}}}}\; = {2^{24}}\)

    PTS = 224 × 2 = 32 MW

    Important points

    1 MW = 220 W

    where W stands for word
Self Studies
User
Question Analysis
  • Correct -

  • Wrong -

  • Skipped -

My Perfomance
  • Score

    -

    out of -
  • Rank

    -

    out of -
Re-Attempt Weekly Quiz Competition
Selfstudy
Selfstudy
Self Studies Get latest Exam Updates
& Study Material Alerts!
No, Thanks
Self Studies
Click on Allow to receive notifications
Allow Notification
Self Studies
Self Studies Self Studies
To enable notifications follow this 2 steps:
  • First Click on Secure Icon Self Studies
  • Second click on the toggle icon
Allow Notification
Get latest Exam Updates & FREE Study Material Alerts!
Self Studies ×
Open Now