Process: Difference between revisions

From Rosetta Code
Content added Content deleted
(Added a bit of information which will probably be changed or added to later)
 
(Added an example of a thread being part of a process)
Line 1: Line 1:
[[Category:Encyclopedia]]A '''process''' is an instance of a computer program. This is not to be confused with a [[thread]], which is a section of code which runs concurrently with other sections of code, or a program, which is a list of instructions.
[[Category:Encyclopedia]]A '''process''' is an instance of a computer program. This is not to be confused with a [[thread]], which is a section of code which runs concurrently with other sections of code, or a program, which is a list of instructions. Threads are technically part of a process. For instance, in a [[Java]] GUI program, many GUI actions are handled on a separate thread from the rest of the program, but it all still runs in a single process.

Revision as of 20:13, 10 February 2008

A process is an instance of a computer program. This is not to be confused with a thread, which is a section of code which runs concurrently with other sections of code, or a program, which is a list of instructions. Threads are technically part of a process. For instance, in a Java GUI program, many GUI actions are handled on a separate thread from the rest of the program, but it all still runs in a single process.