995 views
2 2 votes

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?

1 Answer

Best answer
8 8 votes

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/

selected by
Position:
Show:

Related questions

0 0 votes
0 0 answers
2.1k
2.1k views
hasifyashin asked May 10, 2017
2,137 views
Unlike the IITs, I couldn't find the schedule for direct offers of IISc CSA. Also to my knowledge, they haven't published the no of rounds conducted anywhere. So how much...
0 0 votes
1 answers 1 answer
1.3k
1.3k views
turnthetables asked Apr 13, 2016
1,302 views
With first list over at around 200 OBC for IISC CSA, what are the chances for 332 OBC in further lists?
1 1 vote
3 3 answers
3.5k
3.5k views
Chaitrasj asked Mar 11, 2019
3,516 views
Anand is preparing a pizza with 8 slices, and he has 10 toppings to put on the pizza. He can put only onetopping on each slice but can use the same topping on zero or mor...
2 2 votes
0 0 answers
3.2k
3.2k views
Sayan Bose asked Oct 25, 2018
3,187 views