全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Exec, argument vector?

又称: exec · argument vector

Definition 13.7 University Computer Science — Year 2 · 第 13 章 — Processes and System Calls

An exec replaces the program of the calling process by a new one, read from a file: the code, data, heap and stack are discarded and rebuilt, and the new program starts at its beginning, in the same process, with the same PID, open files and working directory. Its arguments are given as an argument vector, an array of strings ending with a null pointer, whose element 0 is by convention the program’s name; it becomes argv in the new program’s main. A successful exec does not return; if it returns, it failed.

在原文中阅读 →