Basic CS [3i Infotech Placement]: Sample Questions 20 - 21 of 243

Glide to success with Doorsteptutor material for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.

Question 20


Describe in Detail


What is page cannibalizing?


  • Page cannibalizing is page swapping and page replacement so that the page in use by the same process in the current working set is forced to be replaced by another page. This would result in poor performance.

Page swapping:

  • Enables CPU to execute program and manipulate data files larger than main memory through virtual memory.
  • Data in nearest working set is put into main memory and the rest is put on the disk.
  • Swapping exchanges a portion of data in main memory with a portion of data on the disk.
  • Old pages not accessed in recent past are good candidates for swapping.

    Page replacement:

  • Algorithm to decide the page, which needs to be replaced when new page comes in.
  • When a requested page is not in memory and a free page cannot be used to satisfy the allocation the number of free page is lower.
  • When the page was selected for replacement and paged out is referenced again paged in and waiting for I/O completion.
  • A new page is referred and not present in memory, page fault occur and replace page with newly needed page.

Question 21

Basic CS

Describe in Detail


Difference between switching and routing.


Difference between Switching and Routing
Provides direct data in a network.Allow connecting multiple device and its ports can be managed.
Network Layer (Layer 3) devicesData Link Layer device.
Data transmission is in form packetData transmission is in form frame (L2 switch) or frame & packet (L3 switch)
Used in LAN, WANUsed in LAN
Device type- networking deviceDevice type- active & networking device
Transmission Mode- Full duplexTransmission Mode- half or full duplex
Address used for data- IP addressAddress used for data- MAC address

Developed by: