By
- Peter Loshin,Former Senior Technology Editor
What is a program?
In computing, a program is a specific set of ordered operations for a computer to perform. In the modern computer that John von Neumann outlined in 1945, the program contains a one-at-a-time sequence of instructions that the computer follows. Typically, the program is put into a storage area accessible to the computer. The computer gets one instruction and performs it and then gets the next instruction. The storage area ormemorycan also contain the data that the instruction operates on. Note that a program is also a special kind of data that indicates how to operate on application or user data.
Computer programs can be characterized as interactive or batch in terms of what drives them and how continuously they run.
- Interactive programs. These programs receive data from an interactive user or possibly from another program that simulates an interactive user. A command interpreter or a webbrowserare examples of an interactive program.
- Batch programs. These programs run, do their work and then stop. A batch program can be started directly by a user, or it can be invoked to run by an interactive program. A program that computes and prints out a company payroll is an example of a batch program. Print jobs are also batch programs.
Creating a program
When you create a program, you write it using some kind of computer language. Your language statements are thesource program. You then compile the source program with a special program called a language compiler, and the result is called anobject program-- not to be confused with object-oriented programming. There are several synonyms for object program, includingobject moduleandcompiled program. The object program contains the string of 0s and 1s calledmachine languagethat the logic processor works with.
The machine language of the computer is constructed by the language compiler with an understanding of the computer's logic architecture, including the set of possible computer instructions and the length, or number of bits, in an instruction.
All kinds of automation mean all kinds of programs, written and run by ordinary people. Learn how improving your math skills can enhance your programming skills.
This was last updated in November 2021
Continue Reading About program
Related Terms
- What is a device driver?
- A device driver, or driver, is a special kind of software program that controls a specific hardware device attached to a computer.Seecompletedefinition
- What is a quality gate?
- A quality gate is a milestone in an IT project that requires that predefined criteria be met before the project can proceed to ...Seecompletedefinition
- What is continuous integration (CI)?
- Continuous integration (CI) is a software development practice in which frequent and incremental changes are routinely added (...Seecompletedefinition