Question

operating System Concepts, 8th Edition. John Wiley & Sons. By Silberschatz Draw a diagram showing how...

operating System Concepts, 8th Edition. John Wiley & Sons. By Silberschatz

  1. Draw a diagram showing how an application requesting memory causes a page fault and how the data is brought into main memory and sent to the CPU.
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Steps:

=>Whenever the requested item is not present in the main memory page fault will occur

=> there is an internal table in CPU called page table, it checks whether the reference made by the user is valid or not.

(the page table maintains the reference of all data item, it matches the reference of request and its table)

=> if the page table returns invalid the process will terminate there itself. ( it returns requested data not available)

=> if, the page table returns valid(valid means there is no problem in accessing that data item), it means the requested data item is present in secondary memory, but it is not loaded.

=> now loading process take place, for that..it is done by the operating system.

=>the OS takes over the control and locates the data item in secondary memory

=> a free frame should be located in the primary memory.

=> the data is now updated into the the physical or primary memory, and page table is updated.

=> the requested data item is provided to application.

Example:

Secondary storage Primary memory Or RAM V requested A data item is fetched Load A Page table that is maintained by CPU free f

We can uderstand the process from above diagram:

The application stack, needs a dta element A, from memory so it requests it.

1. it checks the page table, whether the data item is present , but the page table returns 'i' which means data item is not present in main memory.

2. whenever i is raised by pagetable, The operating system(OS) takes over control using 'trap' command.

3.OS checks and finds the data item in secondary memory.

4. the data item is transfered to the free frame in main memory.

5. the page table is updated with the reference of new data item.

6. instruction is executed.

Hope this helped , dont forget to like :-)

Add a comment
Know the answer?
Add Answer to:
operating System Concepts, 8th Edition. John Wiley & Sons. By Silberschatz Draw a diagram showing how...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Problem #3 (Total marks-14) Given: An engine has the following operating conditions per air-standard Otto cycle:...

    Problem #3 (Total marks-14) Given: An engine has the following operating conditions per air-standard Otto cycle: Gasolina (SI) TYCO engine Pressure at beginning of compression process (Pal state 1 Temperature at beginning of compression process state 1) Volumetric compression ratio , Specific heat added during combustion process ( k g) (process 273) 300 1400 Data used for constant Specific Heat (standard cold-air assumption) Method: Ic ... 1.005 kJ/kg. K(C) = 0.718 kJ/kg.K. k=1.400, R -0.287 kJkgK Required: Draw a clear...

  • How can we assess whether a project is a success or a failure? This case presents...

    How can we assess whether a project is a success or a failure? This case presents two phases of a large business transformation project involving the implementation of an ERP system with the aim of creating an integrated company. The case illustrates some of the challenges associated with integration. It also presents the obstacles facing companies that undertake projects involving large information technology projects. Bombardier and Its Environment Joseph-Armand Bombardier was 15 years old when he built his first snowmobile...

  • I have this case study to solve. i want to ask which type of case study...

    I have this case study to solve. i want to ask which type of case study in this like problem, evaluation or decision? if its decision then what are the criterias and all? Stardust Petroleum Sendirian Berhad: how to inculcate the pro-active safety culture? Farzana Quoquab, Nomahaza Mahadi, Taram Satiraksa Wan Abdullah and Jihad Mohammad Coming together is a beginning; keeping together is progress; working together is success. - Henry Ford The beginning Stardust was established in 2013 as a...

  • CASE 20 Enron: Not Accounting for the Future* INTRODUCTION Once upon a time, there was a...

    CASE 20 Enron: Not Accounting for the Future* INTRODUCTION Once upon a time, there was a gleaming office tower in Houston, Texas. In front of that gleaming tower was a giant "E" slowly revolving, flashing in the hot Texas sun. But in 2001, the Enron Corporation, which once ranked among the top Fortune 500 companies, would collapse under a mountain of debt that had been concealed through a complex scheme of off-balance-sheet partnerships. Forced to declare bankruptcy, the energy firm...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT