answersLogoWhite

0


Best Answer

There is a concept called as Virtual memory. Here, The pages which are not present in the RAM are placed in the hard disk. Whenever the CPU tries to access a page which is not in RAM, it results in a "Page Fault". Then, the required page is searched in the hard disk and then a victim page is selected in the RAM which is to be replaced. This is done using algorithms like LRU, FIFO, etc. Now, the victim page in RAM is swapped with the new page which is taken from the hard disk. After that, the CPU resumes the execution.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How is it possible for a program to execute with only a subset of these pages residing in main memory at any given time?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

When you delete an item from the empty stack will the program execute?

If the program correctly checks the error-conditions, it will terminate -- otherwise it will do... something, e.g. using memory-garbage as data.


The command used to execute a BASIC programme?

Assuming a BASIC program is loaded into memory, the correct command to execute a BASIC program is: RUN. If you would like to start your program at a particular point in the execution, you may use RUN [#], where [#] is the line number you would like to start execution at.


What is difference between uni-programming and multiprogramming?

multiprogramming or multitasking means more than one program can execute at the same time. It is the allocation of a computer system and its resources to more than one application at the same time. However in uni-programming you can have only one program running at any point in time.


Why contents of a program counter change?

The PC (program counter) is a CPU memory variable, commonly called a "register," that the CPU uses to track where the current executing instruction is located in memory, or on some CPUs, where the next instruction to execute is. Without a PC, the CPU would not know where the code it is currently executing is stored, and thus would not be able to run programs.


How do you make an antivirus program using Java?

A running java program only has access to the memory allocated to it by the Java Runtime Environment. Java by design does not allow access to absolute memory locations which is required to scan for memory resident viruses. A Java-based anti-virus program can still read a virus-signature file and use it to scan for those patterns in files to identify possible infected files.

Related questions

What program can execute in any area of the memory?

Virtual Memory


Once in memory the computer can carry out or the instructions in a program?

execute


What is relocation in operating systems?

program relocatability refer to the ability to load and execute a program into an arbitrary place in memory


When you delete an item from the empty stack will the program execute?

If the program correctly checks the error-conditions, it will terminate -- otherwise it will do... something, e.g. using memory-garbage as data.


The command used to execute a BASIC programme?

Assuming a BASIC program is loaded into memory, the correct command to execute a BASIC program is: RUN. If you would like to start your program at a particular point in the execution, you may use RUN [#], where [#] is the line number you would like to start execution at.


How does the Fetch Decode Execute work?

The program counter in the processor holds the address of the next instruction needed from main memory. The program counter copies its contents into the memory address register. The memory address register then sends the address along the address bus to main memory and the contents of the memory location specified by the address are sent along the data bus to the memory buffer register. The contents of the memory buffer register are then copied to the current instruction register where they are decoded and executed.


Why does avira antivirus block autorun?

autorun files may contain code that can execute a program on let's say a memory stick which might be a virus! it is just a safety precaution.


How does fetch decode execute cycle work?

The program counter in the processor holds the address of the next instruction needed from main memory. The program counter copies its contents into the memory address register. The memory address register then sends the address along the address bus to main memory and the contents of the memory location specified by the address are sent along the data bus to the memory buffer register. The contents of the memory buffer register are then copied to the current instruction register where they are decoded and executed.


What is the Process (Fetch Decode Execute Store)?

The program counter in the processor holds the address of the next instruction needed from main memory. The program counter copies its contents into the memory address register. The memory address register then sends the address along the address bus to main memory and the contents of the memory location specified by the address are sent along the data bus to the memory buffer register. The contents of the memory buffer register are then copied to the current instruction register where they are decoded and executed.


What work of window operating system?

.. Loads and starts programs and DLLs .. Dispatches and halts programs for multiprocessing .. Manages memory .. Insures application programs do not execute prohibited operations such as accessing another program's memory and reading/writing to I/O devices .. Routes requests for services to the appropriate service handler program.


What is program memory?

Program memory refers to a type of memory used in coding. This memory is where the coding originally comes from.


What are processes in operating system?

To put it in simple terms, we write our computer programs in a text file and when we execute this program, it becomes a process which performs all the tasks mentioned in the program. When a program is loaded into the memory and it becomes a process, it can be divided into four sections ─ stack, heap, text and data