- Published on
How do computer programs run?
- Authors
- Name
- AbnAsia.org
- @steven_n_t
"🔹 User interaction and command initiation
By double-clicking a program, a user is instructing the operating system to launch an application via the graphical user interface.
🔹 Program Preloading
Once the execution request has been initiated, the operating system first retrieves the program's executable file.
The operating system locates this file through the file system and loads it into memory in preparation for execution.
🔹 Dependency resolution and loading
Most modern applications rely on a number of shared libraries, such as dynamic link libraries (DLLs).
🔹 Allocating memory space
The operating system is responsible for allocating space in memory.
🔹 Initializing the Runtime Environment
After allocating memory, the operating system and execution environment (e.g., Java's JVM or the .NET Framework) will initialize various resources needed to run the program.
🔹 System Calls and Resource Management
The entry point of a program (usually a function named main
) is called to begin execution of the code written by the programmer.
🔹 Von Neumann Architecture
In the Von Neumann architecture, the CPU executes instructions stored in memory.
🔹 Program termination
Eventually, when the program has completed its task, or the user actively terminates the application, the program will begin a cleanup phase. This includes closing open file descriptors, freeing up network resources, and returning memory to the system. "
Author
AiUTOMATING PEOPLE, ABN ASIA was founded by people with deep roots in academia, with work experience in the US, Holland, Hungary, Japan, South Korea, Singapore, and Vietnam. ABN Asia is where academia and technology meet opportunity. With our cutting-edge solutions and competent software development services, we're helping businesses level up and take on the global scene. Our commitment: Faster. Better. More reliable. In most cases: Cheaper as well.
Feel free to reach out to us whenever you require IT services, digital consulting, off-the-shelf software solutions, or if you'd like to send us requests for proposals (RFPs). You can contact us at [email protected]. We're ready to assist you with all your technology needs.
© ABN ASIA