wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

What is Segmentation?

profile
Devang Dixit
Jul 05, 2024
1 Like
0 Discussions
69 Reads

     Operating Systems Segmentation in operating system is a memory management technique where main memory is divided into different size segments and there are no restrictions on the ways to divide the program. The actual code or data in a module can be part of one segment -that is, the segments represent logical (rather than physical) units(score.hs).

 

The main purpose of segmentation is to improve management and utilization of memory by allowing programs including data structures that have logical part in different sizes contiguously load into physically non-contiguous pockets. This can be especially helpful in cases like large programs that do not fit entirely as one continuous block of memory.

 

Segments are generally created using data organization, such as segmented by the size or type of the information stored. Each segment is also given an unique number called the Segment Number or base address of its lexical object in memory.

 

Programs will ask access to the segments, specifying which segment number they want together with an offset value that is a where in that segment. The operating system converts this logical address to a physical address by adding the base-address of that segment.

 

  • Advantages of Segmentation over other memory management techniques

1.Flexible Segmentation: It offers dynamic allocation and deallocation of segments which helps in better utilization of memory available.

 

2.Sharing: Common segments can be shared by many processes, which decreases the total memory needed. It provides access control, to protect segments from unauthorized access by using appropriate hardware and software level of mechanisms.

 

3.Simple extension: The fact that new sections can be effectively added means programs easier to expand without them having to reload into ongoing squares

 

  • But there are disadvantages of segmentation as well:

1.External Fragmentation: The free spaces left between allocated segments goes on reducing with time, and as a result there occurs scattering of some part-sized places over main memory.

 

2.Fragmented Allocation: Each allocation of memory, even de-allocation or reallocation involves bookkeeping about various details (size and the segment allocated) which makes managing system resources complex to ensure each resource is reused efficiently.

 

3.Complex Address Translation: The translation of logical addresses to physical addresses is more complicated relative to the same function in other techniques such as paging.

 

4.Segmentation is extensively used in combination with another popular method of memory management called Paging (segment and Page) for better efficiency given their capabilities on different demands, especially seen both together because Operating System nowadays are modern one i.e. like Windows or Linux.


Comments ()


Sign in

Read Next

Sweet Mango Murabba

Blog banner

Regression Analysis

Blog banner

“CONSISTENCY” in Social Media Marketing

Blog banner

AI and Data Science: Revolutionizing Industries

Blog banner

Virtual memory in Operating System

Blog banner

AOL Mail

Blog banner

Security and E-mail

Blog banner

Strengthening Active Directory Security

Blog banner

The Power of Teamwork: Learning Collaboration Through Everyday Activities

Blog banner

Monday. com App

Blog banner

Gamer life

Blog banner

All you need to know about “On-page SEO”

Blog banner

Wrike

Blog banner

MPL and how its effects?

Blog banner

The Future of Web Development in 2026: Trends Every Business Must Know

Blog banner

The Dark Web: A Breeding Ground for Cybercriminals – How to Guard Against Threats

Blog banner

Ransomware

Blog banner

Teamwork

Blog banner

Top 5 Tech Innovations of 2018

Blog banner

Classification Algorithms (Decision trees, SVM, Logistic regreession)

Blog banner

Direct Memory Access

Blog banner

Lake Manatee State Park: A Peaceful Nature Escape Near Arcadia

Blog banner

GraphX:- A graph processing tool

Blog banner

Title: Modern Operating Systems: Powering the Digital Era

Blog banner

City2Surf & Spring Fitness Recovery Guide: How Sports Drinks Silently Damage Enamel

Blog banner

Toothache at night? What does this mean, and how to cope with it?

Blog banner

Social Engineering

Blog banner

Chicken Dum Biryani

Blog banner

Multiple processor scheduling

Blog banner

ZOHO

Blog banner

10 Types of Friends in every friend group

Blog banner

Cache Memory(142)

Blog banner

Python as a tool for Data science task & project

Blog banner

Building a Simple Doctor Appointment System in Common Lisp

Blog banner

The functions of operating system

Blog banner

Deadlock and Starvation

Blog banner

Process Creation

Blog banner

Different types of scam frauds

Blog banner

File management

Blog banner

VIRUS

Blog banner

Hubspot

Blog banner

PERT Overview

Blog banner