深入理解计算机系统:系统调用与信号处理.pdfVIP

  • 0
  • 0
  • 约6.31千字
  • 约 5页
  • 2026-07-27 发布于北京
  • 举报

深入理解计算机系统:系统调用与信号处理.pdf

15-213/18-243IntroductiontoComputer

SystemsSpring2009Recitation7

YourNameHere

Overview

SystemCalls

fork()

execve()

wait()

exit()

Signals

ShellLab

RaceConditions

I/ORedirection

SystemCalls

fork()

Splitstheexecutionofoneprocessintotwoprocesseswhichexecuteconcurrently.

ReturnsthePIDofthechildprocessintheparent.

Returns0inthechild.

Theparent’saddressspaceisCOPIEDintothechild’saddressspace.

Writestovariables,arrays,etc.arenotvisibleintheparent

Filedescriptors(stdin,stdout,stderr)areSHARED.

SystemCalls

文档评论(0)

1亿VIP精品文档

相关文档