GATE CSE
First time here? Checkout the FAQ!
x
+1 vote
55 views
  • what is the mode used when page tables of a process are loaded and modified?--KERNEL /USER?
  • are page tables of the process also stored in process control block??
asked in Operating System by Veteran (13.2k points)   | 55 views

@akriti, when page tables are first loaded than that hsould be in kernal mode as Dispacther is responsible for loading a p/c with its content and Dispatcher is called by Kernal mode to execute as far as i know. when talking about modification in page table than a p/c while executing itself can modify it's table. so there should not be Kernal mode in this. Not sure about point 2 though.

2nd ques.. that page table are stored in PCB. nope whole page table is not stored in PCb.there is Memory management information in PCB : includes the information of page table, memory limits, Segment table depending on memory used by the operating system.

for 2nd ques. of yours , source is wikipidia. https://en.wikipedia.org/wiki/Process_control_block

@mohit,i read in galvin that we need priviledged instruction to modify the page tables..

and thanks for he link
and also,can you give some good link regarding which operations are done in kernel mode and user mode..

system calls are perfomed in kernel mode right??

yes @akriti, you are right about 2nd part. and priviledged  inst. are done in kernal mode. it is clearly given in the answer in this link.  I guess, we can trust stackoverflow :) http://stackoverflow.com/questions/35592339/can-you-modify-your-own-page-tables-os-related

alright..and any good link for various operations in user mode and kernel mode?

and also while switchinf from user mode to kernel mode,which system call or instruction is used and vice-versa

@akriti, first try to find it by yourself, it is a good habit and moreover i mostly rely on wikipedia n stackoverflow.so i guess this is the link you need i guess http://stackoverflow.com/questions/1311402/differences-between-user-and-kernel-modes . hope it helps.  no offence though.

thanks @mohit:-)

Please log in or register to answer this question.



Top Users Jun 2017
  1. Bikram

    3810 Points

  2. Arnab Bhadra

    1526 Points

  3. Hemant Parihar

    1502 Points

  4. Niraj Singh 2

    1491 Points

  5. Debashish Deka

    1434 Points

  6. junaid ahmad

    1432 Points

  7. pawan kumarln

    1278 Points

  8. Rupendra Choudhary

    1242 Points

  9. rahul sharma 5

    1236 Points

  10. Arjun

    1218 Points

Monthly Topper: Rs. 500 gift card
Top Users 2017 Jun 26 - Jul 02
  1. pawan kumarln

    410 Points

  2. Arjun

    258 Points

  3. akankshadewangan24

    254 Points

  4. Abhisek Das

    220 Points

  5. Debashish Deka

    188 Points


23,421 questions
30,139 answers
67,562 comments
28,469 users