官术网_书友最值得收藏!

Processes

Quintessentially, computing systems are designed, developed, and often tweaked for running user applications efficiently. Every element that goes into a computing platform is intended to enable effective and efficient ways for running applications. In other words, computing systems exist to run diverse application programs. Applications can run either as firmware in dedicated devices or as a "process" in systems driven by system software (operating systems).

At its core, a process is a running instance of a program in memory. The transformation from a program to a process happens when the program (on disk) is fetched into memory for execution.

A program’s binary image carries code (with all its binary instructions) and data (with all global data), which are mapped to distinct regions of memory with appropriate access permissions (read, write, and execute). Apart from code and data, a process is assigned additional memory regions called stack (for allocation of function call frames with auto variables and function arguments) and heap for dynamic allocations at runtime.

Multiple instances of the same program can exist with their respective memory allocations. For instance, for a web browser with multiple open tabs (running simultaneous browsing sessions), each tab is considered a process instance by the kernel, with unique memory allocations.

The following figure represents the layout of processes in memory:

主站蜘蛛池模板: 确山县| 博乐市| 怀集县| 六枝特区| 辽宁省| 修文县| 三都| 时尚| 盘山县| 集安市| 嘉定区| 响水县| 宁德市| 昆山市| 乌拉特中旗| 南汇区| 墨竹工卡县| 叙永县| 长阳| 托里县| 浦北县| 西丰县| 定结县| 石狮市| 特克斯县| 灵山县| 邮箱| 信阳市| 海林市| 班玛县| 桑植县| 察哈| 青浦区| 昌吉市| 赤峰市| 永定县| 锡林浩特市| 吉安县| 东阳市| 醴陵市| 资兴市|