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.3k 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 Aug 2017
  1. Bikram

    5276 Points

  2. ABKUNDAN

    4730 Points

  3. akash.dinkar12

    3526 Points

  4. manu00x

    3492 Points

  5. rahul sharma 5

    3188 Points

  6. makhdoom ghaya

    2700 Points

  7. just_bhavana

    2432 Points

  8. stblue

    2244 Points

  9. Tesla!

    2090 Points

  10. pawan kumarln

    1876 Points


25,074 questions
32,230 answers
75,116 comments
30,239 users