Difference

Difference Between Difference between Static Friction and Limiting Friction Difference between AT Motherboard and ATX Motherboard Difference between Balance Sheet and Statement of Affairs Difference between Online and Offline Marketing Longitude And Latitude Difference Between Bone And Cartilage Difference Between Real And Virtual Image Difference Between Physical Change And Chemical Change Difference Between India And Australia Difference Between Need And Want Difference Between Current Account And Saving Account Difference Between Warranty And Guarantee Difference Between Orbits And Orbitals Atom Difference Between Vision And Mission Difference Between Recruitment And Selection Difference Between Has And Have Difference Between Cc And Bcc Difference Between Center And Centre Difference Between Metrics Kpis And Critical Results Difference Between Visa And Passport Difference Between Audit And Review Difference Between Can And Could Difference Between Dicot And Monocot Seeds Difference Between Guidance And Counseling Difference Between Homogenous And Heterogeneous Difference Between Immigration And Emigration Difference Between Molecules And Compounds Difference Between Otg And Microwave Difference Between Permutation And Combination Difference Between Phrase And Clause Difference Between President And Prime Minister Difference between Cost Accounting and Financial Accounting Http Vs Https Difference Between Electrovalency and Covalency Difference between EMF and Potential Difference Difference between Extender and Repeater Difference between First Angle Projection and Third Angle Projection Difference between FTP and TFTP Difference between Full Stack Developer and Software Developer Difference between GPS and DGPS Difference between GPS and GPRS Difference between Hadoop and Spark Difference between Intel and AMD Difference between Maskable and Non-Maskable Difference between Northbridge and Southbridge Difference between Raspberry Pi and Beaglebone Black Difference between two tier and three tier database architecture Differences between Bluetooth and Zigbee Difference between active and passive FTP in Linux Difference between Flash Drives and Hard Drives Difference between Flow Control and Congestion Control Difference between Generic Software and Custom Software Difference between Hematite and Magnetite Difference between Hyperlink and Hypertext Difference between this and super in Java Difference between Analytical Engine and Difference Engine Difference between Block Cipher and Stream Cipher Difference between Definition and Declaration in Coding Difference between Dependency and DevDependencies Difference between Domestic and International Marketing Difference between Domestic HRM and International HRM Difference between EBS and EFS Difference between E-Commerce and E-Business with an Example Difference between E-Commerce and M-Commerce Difference between EIGRP and OSPF Difference between EM and REM Difference between EPROM and EEPROM Difference between Ordinary Diode and Zener Diode Difference between OSS and BSS Difference between Traditional Marketing and Digital Marketing Difference between Associative Mapping and Direct Mapping in Cache Difference between Baseband and Broadband Difference between Elasticity and Plasticity Difference between MVP and MVVM Difference between NAT and PAT Difference between Persistent and Non-Persistent Connection Difference between PLA and PAL Difference between PROM and EPROM Difference between SHA and MD5 Difference between Software Engineering and System Engineering Difference between Solenoid and Toroid Difference between Spark DataFrame and Pandas DataFrame Difference between Strong Entity and Weak Entity Difference between Website and Portal Difference between Bezier Curve and B-Spline Curve Difference between npm and yarn Difference between Subnetting and Supernetting Difference between Syntax and Semantics Difference between Traditional and Modern Concepts of Marketing Difference between Training and Development Difference between TV and Computer Display Difference between UART and USART Difference between User Mode and Kernel Mode Difference between Website and Web Application Difference between Wi-Fi and Cellular Network Differences between Electric Potential and Potential Difference Difference between ERP and SAP Software Difference between Exhaustible and Inexhaustible Natural Resources Difference between Fedora and CentOS Operating Systems Difference between Fixed and Dynamic Channel Allocations Difference between Impact and Non-Impact Printer Difference between Multimedia and Hypermedia Difference between NPM and NPX Difference between NPM and Yarn Difference between Open-Source Software and Free Software Difference between Open-Source Software and Proprietary Software Difference between Research Papers and Technical Papers Difference between TDMA, CDMA, and FDMA Difference between Technical Writing and General Writing Difference between Threat and Attack Difference between .NET Core and .NET Framework Difference between Static Friction and Limiting Friction Difference between AT Motherboard and ATX Motherboard Difference between Balance Sheet and Statement of Affairs Difference between Online and Offline Marketing Difference between Server-Side and Client-Side Scripting Difference between Coaxial Cable and Twisted Pair Cable Difference Between CSE and IT Difference between Forward Engineering and Reverse Engineering Difference between MD5 and SHA1 Difference between Memory Mapped IO and IO Mapped IO with reference to 8085 Microprocessor Difference between Optical Fiber and Coaxial Cable Difference between PATA and SATA Difference between Procedural and Declarative Knowledge Difference between Pure Substances and Impure Substances Difference between RIP and EIGRP Difference between SDN and NFV Difference between Training and Development Difference Between AES and DES Ciphers Difference between Backtracking and Recursion Difference between Byte and Character Stream Difference between Life Insurance and Fire Insurance Difference between Paging and Segmentation Difference between HMO and PPO Differences between Compiler and Interpreter Differences between OLTP and Data Warehouse Differences between Point-to-Point and Multi-point Communication Difference Between MAC and DAC Akamai vs Cloudflare Software vs Application

Difference between Paging and Segmentation

What is Paging?

Paging is one of the most important terms used in the operating system. Paging divides the physical memory into frames and program’s address space into identical size pages. The size of the page should be always stable. As we know that the dimension of the page should be provided by the hardware itself, it generally guides to internal fragmentation as the page is the fixed block size. In paging, page table is used to map pages with the frames from memory. Page table contains page location as well as frame location. Paging is invisible to the developers. Paging contains static linking and dynamic loading. A page is an actual unit.

Difference between Paging and Segmentation

Important Terminologies used in Paging

  1. Address represented in bits also known as logical address is generated by the CPU.
  2. Virtual address space the combination of all logical addresses are generated by a program.
  3. Physical address will appear on memory unit.
  4. The mapping from the computer generated address to physical address is performed by the memory management unit (MMU) which is hardware device and this process is known as paging technique.
  5. Physical address scope is divided into number of stable size blocks known as frames.
  6. Logical address scope is divided into fixed size blocks which are known as pages.
  7. Page size = frame size.

Memory Management Unit (MMU)

Memory management unit is used for converting logical addresses to physical addresses. Physical address is type of address of frame in which every page is stored, although the logical address is type of address which is generated by the CPU for each page. CPU approaches a page using its logical address. Operating system generally collects physical address in order to approach that page physically. It is also an important term used in operation system.

Physical address contains:

  1. Frame number(F)
    Frame no. defines the number of bits which are required to represent the frame of physical address space also known as frame number.
  2. Frame offset(d)
    It is used to specify the number of bits required to represent a certain word in a frame, or the Physical Address Space frame size, the word number of a frame, or the frame offset.

Hardware implementation of the page table is performed by assigned registers. But the use of register is only beneficial in one condition when page table is too small. If the page table consists of a huge numbers of entries, then we use the TLB (Translation Look aside Buffer), a special, small, quick look up hardware cache.

  1. TLB is a close, high speed memory.
  2. Everyentry in TLB contains two parts, tag and value.
  3. When TLB is used then an item is compared with all tags. If the item is found, then equivalent value is returned.

What is Segmentation?

Segmentation is a memory management technique or process which is used to divide the program from the user's view of memory. It means the program is divided into modules or segments. The blocks that a program is divided into which are not of identical sizes are known as segments. Segmentation provides user view of process. This feature is not included in paging. In segmentation, user view is mapped to physical memory. Segmentation is also another type of non-contiguous memory allocation method like paging. Variable size partitioning is a theme of segmentation. It results in external fragmentation.

It is easy to appeal for protection in segmentation. In segmentation, segments are of different sizes. It also provides more efficient result then paging. It can handle data structures. In segmentation, list of holes is maintained by the operation system. Segments are also known as logical unit of information. There is also no restriction on size of segments. Segmentation is visible to the user and it eases sharing of methods between processes. In segmentation, processors require segment number.

Types of Segmentation

There are mainly two types of segmentations present in the operating system:

  1. Virtual Memory Segmentation: Virtual Memory Segmentation divides the processes into n number of segments. All the segments are not divided at a time. Virtual Memory Segmentation may or may not take place at the run time of a program.
  2. Simple Segmentation: In simple segmentation, every process is divided into number of segments, all of which loaded in memory at run time, not continuously.

Simple relationship cannot be maintained between logical and physical addresses in segmentation. A table collects the information related to all segments which is known segment table. Segment table maps 2D logical address into one dimensional physical address. Every entry of table contains base address and its limit.

  1. Base address: It consists of starting physical address where segments occupy in memory.
  2. Limit: The limit specifies the length of particular segment.

Address generated by CPU

  1. Segment number (S): It specifies the numbers of bits needed to present the segment.
  2. Segment offset (D): It specifies the numbers of bits needed to present the size of the segment.

Advantages of Segmentation

  1. There is no internal fragmentation in segmentation.
  2. In segmentation, segment table consumes less space as compare to page table in paging.
  3. Whole module is loaded only once and segmentation improves CPU utilization.
  4. It is a type of method which is used to segregate data from security operations.
  5. In segmentation, segment is specified by the user whereas in paging the hardware determines the page size.

Disadvantages of Segmentation

  1. The major disadvantage of segmentation is that the approach time to retrieve the instruction increases because in segmentation there are two memory accesses, one for segment table and another for main memory.
  2. Overhead is connected with keeping a segment table for each activity.
  3. As we know that processes are loaded as well as removed from the memory, the free memory space is divided into small pieces which results in external fragmentation.