subprocess(名词)指子进程:由一个正在运行的程序(父进程)创建并管理的独立运行单元,通常用于并行执行任务、调用外部命令或隔离某些操作。在编程语境中也常指“启动并与外部程序交互”的那套机制。(也可作形容词表示“次级的/子级的”,但更常见的是名词用法。)
/ˈsʌbˌprɑːsɛs/(美式常见)
I launched a subprocess to run the command in the background.
我启动了一个子进程,让那个命令在后台运行。
Because the subprocess inherits the environment, it can access the same configuration variables as the parent program.
由于子进程会继承环境变量,它可以访问与父程序相同的配置变量。
由 **sub-**(“在下、次级、子”)+ process(“过程/进程”)构成,字面意思就是“次级的过程/子级的进程”。在计算机领域中,它进一步固定为“由父进程派生出来的执行单元”。