Use app×
JEE MAIN 2024
JEE MAIN 2025 Foundation Course
NEET 2024 Crash Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
124 views
in Computer by (106k points)
closed by

Consider the following segment table in segmentation scheme:

Segment Id

Base

Limit

0

200

200

1

5000

1210

2

1527

498

3

2500

50

 

What happens if the logical address requested is - Segment Id 2 and offset 1000?


1. Fetches the entry at the physical address 2527 for Segment Id 2
2. A trap is generated
3. Deadlock
4. Fetches the entry at offset 27 in Segment Id 3

1 Answer

0 votes
by (106k points)
selected by
 
Best answer
Correct Answer - Option 2 : A trap is generated

The correct answer is "option 2".

CONCEPT:

Segmentation is a process of dividing each process into variable size segments, where each segment performs related functions.

Segment table stores details about segments. 

Base register of a segment contains the Base address value i.e. smallest physical address from where each segment starts

Limit register contains the last range value of a Segment.

CALCULATION:

For a segment address to be in the range of the segment, it must be:

Base address <= segment address <= ( Base address + limit register value)

Base address

Limit value

Valid address range

Offset

Check valid offset range

1527

498

1527 to 1527+498

1000

1000 > 498

Since the offset value is exceeding the value of the limit of segment Id2, the trap will be generated.

Hence, the correct answer is "option2".

Technique

Removes

Leads to

Segmentation

Internal fragmentation

External fragmentation

Paging

External fragmentation

Internal fragmentation

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...