A program, I am referring to any program written in any programming language. It could be a Java program which has only one method to do the multiplication, and a main method executes that multiplication method. Or it could be a program in Python does the same thing. Or it could be an application program such as an email client, a web browser, or a chat application, or an online game client.
Not sure if the main question makes any sense, but I am trying to figure out:
Is it correct to say each one of above is a program or there are some essential differences?
When I start a program, am I starting a process in the operating system?
Can a program have multiple processes?
Best Answer
Although there is no single source of truth about these terms, I think we can agree about the fundamental difference between a program and a process:
a program is a set of instructions intended to achieve a goal. It is an artifact.
an OS process is the execution of a program: so it's not only a set of instructions, but also a flow of execution of the program's instruction, together with an execution context (stack, values of variables, resources, etc...):
Some references