edited by
7,590 views
3 3 votes

 Consider the following segment table in segmentation scheme :

$\begin{array}{|l|l|l|l|l|}\hline  \textbf{Segment ID} & \textbf{Base} & \textbf{Limit} \\\hline \text{0} & \text{200} & \text{200} \\\hline \text{1} & \text{5000} & \text{1210} \\\hline \text{2} & \text{1527} & \text{498} \\\hline \text{3} & \text{2500} & \text{50} \\\hline  \end{array}$

 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$

3 Answers

Best answer
6 6 votes

Answer: (b)

Explanation: Offset 1000 in Segment Id 2 is crossing the Segment Id 2 memory area. Here Segment Id 2 memory area is 1527 to 1527 + 498 = 2025.

selected by
4 4 votes
an os trap signal will be generated. as offset tell how much deeper we have to go in the segment. as we have given 1000 as offset while the segment size is 498 . it will try to read another process memory which should not be allowed in any case
0 0 votes
It should be a TRAP  as the limit   > offset  here for id 2
Answer:
Position:
Show:

Related questions

8 8 votes
3 answers 3 answers
5.7k
5.7k views
go_editor asked Jul 1, 2016
5,725 views
Which of the following is not an optimization criterion in the design of a CPU scheduling algorithm?Minimum CPU utilizationMaximum throughputMinimum turnaround timeMinimu...
3 3 votes
4 answers 4 answers
7.0k
7.0k views
go_editor asked Jul 1, 2016
6,952 views
Dirty bit is used to indicate which of the following?A page fault has occurredA page has corrupted dataA page has been modified after being loaded into cacheAn illegal ac...
11 11 votes
3 answers 3 answers
8.9k
8.9k views
go_editor asked Jul 1, 2016
8,927 views
What is the minimum number of resources required to ensure that deadlock will never occur, if there are currently three processes $P_1, P_2$ and $P_3$ running in a system...
5 5 votes
3 answers 3 answers
6.1k
6.1k views
go_editor asked Jul 1, 2016
6,126 views
A computer has 16 pages of virtual address space but the size of main memory is only four frames. Initially the memory is empty. A program references the virtual pages in...