Process

From Chessprogramming wiki
Revision as of 19:40, 9 November 2020 by GerdIsenberg (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Home * Programming * Process

A Process is an instance of a computer program, containing the program code being or about to be executed and its data in memory. A process owns ressources such one or more processors if running, and memory, including descriptors of allocated resources, such as file descriptors or handles for data sources and sinks, usually all provided by the operating system. Multitasking operating systems allow the simultaneous execution of multiple threads within one process, sharing all its common resources. Further, processes may spawn or fork child processes who inherit most of the attributes from its parent, such as open files, but otherwise have their own memory for data, heap and stack.

Process States

Process states.svg

Seven process states in a State diagram [1]

Parallel Search

In Parallel search, multiple threads within one process are more common, because they are easier to debug as well as implement, provided the program does not already have lots of global variables. Processes are favored by some because the need to explicitly share memory makes subtle bugs easier to avoid. Also, in processes, the extra argument to most functions is not needed.

See also

Forum Posts

2000 ,,,

2010 ...

2020 ...

External Links

Posix

Pstree from Wikipedia
kill (command) from Wikipedia

Windows

Creating Processes
Creating a Child Process with Redirected Input and Output

C++

Java

Misc

References

Up one Level