From 58252495dd945c64b4de24e302085d243fe276f1 Mon Sep 17 00:00:00 2001 From: cyrilstevens7 Date: Sat, 13 Sep 2025 16:46:44 +0800 Subject: [PATCH] Add 'Virtual Memory In Operating System' --- Virtual-Memory-In-Operating-System.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Virtual-Memory-In-Operating-System.md diff --git a/Virtual-Memory-In-Operating-System.md b/Virtual-Memory-In-Operating-System.md new file mode 100644 index 0000000..a68ba6b --- /dev/null +++ b/Virtual-Memory-In-Operating-System.md @@ -0,0 +1,7 @@ +
Virtual memory is a memory management method utilized by operating techniques to provide the appearance of a large, continuous block of memory to applications, even when the physical memory (RAM) is proscribed. It allows larger purposes to run on methods with much less RAM. To help multiprogramming , it permits a couple of program to run at the same time. A program doesn’t should be absolutely loaded in memory to run. Solely the wanted components are loaded. Packages can be greater than the bodily memory obtainable in the system. Digital memory creates the illusion of a big [Memory Wave Routine](https://wikibuilding.org/index.php?title=User:NadiaBannister), even when the precise memory (RAM) is small. It makes use of both RAM and disk storage to manage memory, loading solely elements of applications into RAM as needed. This enables the system to run more programs at once and handle memory extra effectively. What's Digital Memory? Digital memory is a means for a pc to pretend it has extra RAM than it actually does.
+ +
When the RAM is full, the computer strikes some information to the arduous drive (or SSD). This space on the laborious drive is used like extra memory. This helps the computer run greater applications or multiple programs at the same time, even if there isn’t sufficient RAM. The a part of the hard drive used for this known as a web page file or swap area. The pc routinely moves data in and out of RAM and the laborious drive as wanted. Earlier than digital memory, computers only used RAM and secondary storage (like disks) to retailer data. In the 1940s and 1950s, memory was very small and expensive. Early computers used magnetic core for RAM and magnetic drums for [Memory Wave Routine](https://marketingme.wiki/wiki/User:LashawndaCade) secondary storage. As packages acquired larger, there wasn’t enough memory to run them suddenly. In 1956, Fritz-Rudolf Guntsch, a German physicist, developed the concept of digital memory. The primary actual system using virtual memory was built on the University of Manchester, during the development of the Atlas computer.
+ +
Digital memory uses both hardware and software to manage memory. When a program runs, it uses virtual addresses (not actual memory places). The pc system converts these virtual addresses into bodily addresses (actual areas in RAM) while the program runs. In a pc, [Memory Wave](https://xn--bb0bw4mh6loup.net/bbs/board.php?bo_table=free&wr_id=244233) virtual memory is managed by the Memory Administration Unit (MMU), which is usually built into the CPU. The CPU generates virtual addresses that the MMU translates into bodily addresses. Paging divides memory into small fixed-dimension blocks known as pages. When the computer runs out of RAM, pages that are not at the moment in use are moved to the arduous drive, Memory Wave into an area known as a swap file. The swap file acts as an extension of RAM. When a web page is required once more, it's swapped again into RAM, a course of often called web page swapping. This ensures that the working system (OS) and applications have sufficient memory to run. Demand Paging: The means of loading the page into memory on demand (at any time when a page fault occurs) is called demand paging.
+ +
If the CPU tries to refer to a web page that's at the moment not available in the main memory, it generates an interrupt indicating a memory entry fault. The OS places the interrupted course of in a blocking state. For the execution to proceed the OS must bring the required page into the memory. The OS will seek for the required web page in the logical tackle house. The required page might be introduced from logical tackle area to [physical address](https://ajt-ventures.com/?s=physical%20address) house. The page alternative algorithms are used for the decision-making of changing the page in physical address area. The page desk shall be up to date accordingly. The signal can be sent to the CPU to continue this system execution and it will place the method back into the ready state. What is Page Fault Service Time? The time taken to service the page fault is called web page fault service time. The web page fault service time contains the time taken to carry out all the above six steps.
\ No newline at end of file