Sample Questions Best site for GRE, LSAT, SAT, GMAT, TOEFL, CCNA, CCSA and interview sample questions  

Technical Sample Questions : C |  C++ |  Oracle |  Java | Unix |  Operating Systems |  Data Structure

Sample Technical Questions

Unix Sample Questions

Questions on memory management in uinx

  1. What is the difference between Swapping and Paging?

    Answer:

    Swapping:
    Whole process is moved from the swap device to the main memory for execution. Process size must be less than or equal to the available main memory. It is easier to implementation and overhead to the system. Swapping systems does not handle the memory more flexibly as compared to the paging systems.

    Paging:
    Only the required memory pages are moved to main memory from the swap device for execution. Process size does not matter. Gives the concept of the virtual memory. It provides greater flexibility in mapping the virtual address space into the physical memory of the machine. Allows more number of processes to fit in the main memory simultaneously. Allows the greater process size than the available physical memory. Demand paging systems handle the memory more flexibly.

  2. What is major difference between the Historic Unix and the new BSD release of Unix System V in terms of Memory Management?

    Answer:

    Historic Unix uses Swapping – entire process is transferred to the main memory from the swap device, whereas the Unix System V uses Demand Paging – only the part of the process is moved to the main memory. Historic Unix uses one Swap Device and Unix System V allow multiple Swap Devices.
  3. What is the main goal of the Memory Management?

    Answer:

    It decides which process should reside in the main memory, Manages the parts of the virtual address space of a process which is non-core resident, Monitors the available main memory and periodically write the processes into the swap device to provide more processes fit in the main memory simultaneously.
  4. What is a Map?

    Answer:

    A Map is an Array, which contains the addresses of the free space in the swap device that are allocatable resources, and the number of the resource units available there. This allows First-Fit allocation of contiguous blocks of a resource. Initially the Map contains one entry – address (block offset from the starting of the swap area) and the total number of resources.

    Kernel treats each unit of Map as a group of disk blocks. On the allocation and freeing of the resources Kernel updates the Map for accurate information.

  5. What scheme does the Kernel in Unix System V follow while choosing a swap device among the multiple swap devices?

    Answer:

    Kernel follows Round Robin scheme choosing a swap device among the multiple swap devices in Unix System V.
  6. What is a Region?

    Answer:

    A Region is a continuous area of a process's address space (such as text, data and stack). The kernel in a 'Region Table' that is local to the process maintains region. Regions are sharable among the process.
  7. What are the events done by the Kernel after a process is being swapped out from the main memory?

    Answer:

    When Kernel swaps the process out of the primary memory, it performs the following:
    • Kernel decrements the Reference Count of each region of the process. If the reference count becomes zero, swaps the region out of the main memory,
    • Kernel allocates the space for the swapping process in the swap device,
    • Kernel locks the other swapping process while the current swapping operation is going on,
    • The Kernel saves the swap address of the region in the region table.

« Previous || Next »

Unix Sample Question Number : 1-5 | 6-11 | 12-16 | 17-23 | 24-29 | 30-36 | 37-41 | 42-48 | 49-55 | 56-61 | 62-67 | 68-73
Sample Test Questions
GRE Sample Questions
CAT Sample Questions
GMAT Sample Questions
TOEFL Sample Questions
ACT Sample Questions
SAT Sample Questions
LSAT Sample Questions
PSAT Sample Questions
MCAT Sample Questions
PMP Sample Questions
GED Sample Questions
ECDL Sample Questions
DMV Sample Questions
CCNA Sample Questions
MCSE Sample Questions
Network+ Sample Questions
A+ Sample Questions
Technical Sample Questions
WASL Sample Questions
CISA Sample Questions

Other Sample Questions
Sample Interview Questions
Sample Teacher Interview Questions
Sample Citizenship Questions
Accuplacer Sample Questions
Science Bowl sample Questions
Driving Test Sample Questions
Sample Survey Questions Sample Essay Questions
Sample Behavioral Interview Questions

Copyright © 2004-2013, Best BSQ. All Rights Reserved.