The way of program execution on computer

The way of program execution on computer

In order to be executed on a computer,

it is necessary to provide to program access to computer resources (hardware):

most important processor, memory, and then the hard disk, keyboard, monitor, etc.. It all depends on the type of program.

This is done through the operating system that, running on the request for allocation of resources, determines the amount of processor time,memory, grants access to other parts of the computer system and so on.

If a user runs multiple programs at once, as is often the case, the operating system decides on the priority of running programs, which meansthat some program get more CPU time for execution compared to others.

The program itself is placed after initiation (is loaded) in the operative part of the memory specified by the operating system,

and processor reads from memory commands one by one and executes them, the results if there is one are also stored in operational memory or depending on the program, the results are shown on monitor, printed on a printer or saved on the hard disk.

All the best,

Author