retagged by
17,328 views
2 votes
2 votes

Operating System maintains the page table for :

  1. each process
  2. each thread
  3. each instruction
  4. each address
retagged by

4 Answers

5 votes
5 votes

A page table is the data structure used by a virtual memory system in a computer operating system to store the mapping between virtual addresses and physical addresses. Virtual addresses are used by the program executed by the accessing process, while physical addresses are used by the hardware, or more specifically, by the RAM subsystem. The page table is a key component of virtual address translation which is necessary to access data in memory

Yes every process has its own pagetables. They might be shared with the parent process(copy on write) or with other processes(shared memory). But in general every process has its own.Each process has its own page table in the kernel. Having a separate page table for each process is necessary for process isolation as they should not be allowed to stomp on each others memory.

thread is also a process but process can't be thread.

No, 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 option A is more correct than option B.

0 votes
0 votes
A: page table is used to maintain process.
0 votes
0 votes

in computer operating systems, memory paging is a memory management scheme by which a computer stores and retrieves data from secondary storage for use in main memory. In this scheme, the operating system retrieves data from secondary storage in same-size blocks called pages.

therefore the answer is A.

Answer:

Related questions

1 votes
1 votes
4 answers
1
admin asked Mar 31, 2020
2,158 views
If file size is large and if it is to be accessed randomly then which of the following allocation strategy should be best to use in a system?Linked allocationIndexed allo...
1 votes
1 votes
2 answers
2
admin asked Mar 31, 2020
2,480 views
Non-contiguous memory allocation splits program into blocks of memory called ________ that can be loaded in non-adjacent holes in main memory.PagesFramesPartitionSegments...
1 votes
1 votes
1 answer
3
admin asked Mar 31, 2020
1,619 views
What is Compaction ?a technique for overcoming internal fragmentationa paging techniquea technique for overcoming external fragmentationa technique for overcoming fatal e...
4 votes
4 votes
3 answers
4
admin asked Mar 31, 2020
2,252 views
Process is in a ready state _______ .when process is scheduled to run after some executionwhen process is unable to run until some task has been completedwhen process is ...