The Gateway to Computer Science Excellence
0 votes
131 views

Given that a computer system has only 3 process.1st process is single threaded, 2nd process is two threaded and 3rd process is 4 threaded.So total how many number of page tables will be managed by the operating system?

in Operating System by Active (1.3k points) | 131 views

1 Answer

+3 votes
Best answer

All threads of a process share the same page table. The point of having threads is to be able to have multiple tasks operating on the same memory. Threads are supposed to be fast, so there would be a lot of overhead if the entire page table had to be copied whenever a thread was created. We also want context switching to be fast, so we want to avoid having to switch between page tables when a different thread starts to execute

So it doesn't matter how many threads a process has, there will be only one page table. Thus, Ans: 3 Page tables.

Ref: http://web.cs.ucla.edu/classes/winter12/cs111/scribe/15e/

by Active (2.1k points)
selected by
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,647 questions
56,492 answers
195,464 comments
100,765 users