OS - Process (Task)

> Operating System - Kernel (Windows, Unix, Linux) > OS - Process (Task)

1 - About

A process is is the first thread started (generally called main) and the only one authorized to start new threads.

A process is also known as:

  • a task (ie Task Manager).
  • running programs

See entry point

A process has a self-contained execution environment.

A process generally has a complete, private set of basic run-time resources allocated by the operating system, in particular, each process has:

Creating or destroying a process is relatively expensive, as resources must be acquired or released.

Processes are often seen as synonymous with programs or applications. However, what the user sees as a single application may in fact be a set of cooperating processes.


3 - OS

Process in a OS context

4 - Management

4.1 - Processor

Which processor are allowed to run the process ? See Hardware - NUMA node (Affinity)

4.2 - Environment

4.3 - Time

Process time are CPU time

4.4 - Communication


4.5 - Vizualization

4.6 - Watch Dog

4.7 - Monitoring

4.7.1 - strace

OS - strace (Interactions between processes and the Linux kernel)

To start and monitor an new process:

strace -f -e trace=network -s 10000 PROCESS ARGUMENTS

To monitor an existing process with a known PID:

strace -p $PID -f -e trace=network -s 10000

4.8 - Call Stack

There is usually exactly one call stack associated with a running process (or thread)

4.9 - Priority


5 - Documentation / Reference

os/process/process.txt · Last modified: 2019/05/22 14:35 by gerardnico