Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在linux进程中的fd #37

Open
ab503044120 opened this issue Jun 17, 2020 · 0 comments
Open

在linux进程中的fd #37

ab503044120 opened this issue Jun 17, 2020 · 0 comments

Comments

@ab503044120
Copy link
Collaborator

学科:《深入理解计算机系统》
类型:知识理解
内容:第十二章 12.2小节 684页
image
如上图select 方法第一个参数需要传最大的fd ,由此有几个疑问

  1. 每个进程的fd是不是有限制呢,最大是多少呢
  2. 每个进程fd为什么都是独立计算的呢( 从3开始,012是标准准io)
  3. 关闭进程后fd会自动回收吗(包括子进程和父进程)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant