由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - simple simple question
相关主题
Question on file descriptorlink between file descriptor & pointer?
file descriptor[转载] windows C++ -> Unix C++
A question about thread of unixhow come this stupid question?
[转载] why need dup?Help, Simple stupid Vi question
fileIDSimple Question
什么命令可以查看sockets端口的占用情况?(null)thxcan't run a simple c code
[转载] using ssh in tcsh scriptsimple question
Re: how to close port/socket from parent process?help!!!!!!!!!wait on line: simple question
相关话题的讨论汇总
话题: simple话题: error话题: limit话题: run
进入Unix版参与讨论
1 (共1页)
d*o
发帖数: 108
1
Can someone explain in plain English/Chinese what is a file descriptor?
Here is the context: I run a big Java job on unix; get an out-of-memory error.
It turns out that if I run the command 'limit descriptors 65', then the error
goes away. But if I run 'limit descriptors 64', the error comes back.
It seems all the numbers given by 'limit' is the power of 2. Is there a good
reason for that? or just a convention?
Thanks.
j*******e
发帖数: 82
2

呵呵, 是不是和DOS里面的FILE HANDLE差不多啊? 就是一个程序能够同时
打开的文件数目?

【在 d*o 的大作中提到】
: Can someone explain in plain English/Chinese what is a file descriptor?
: Here is the context: I run a big Java job on unix; get an out-of-memory error.
: It turns out that if I run the command 'limit descriptors 65', then the error
: goes away. But if I run 'limit descriptors 64', the error comes back.
: It seems all the numbers given by 'limit' is the power of 2. Is there a good
: reason for that? or just a convention?
: Thanks.

1 (共1页)
进入Unix版参与讨论
相关主题
wait on line: simple questionfileID
a simple perl problem?什么命令可以查看sockets端口的占用情况?(null)thx
A simple question[转载] using ssh in tcsh script
Another simple questionRe: how to close port/socket from parent process?help!!!!!!!!!
Question on file descriptorlink between file descriptor & pointer?
file descriptor[转载] windows C++ -> Unix C++
A question about thread of unixhow come this stupid question?
[转载] why need dup?Help, Simple stupid Vi question
相关话题的讨论汇总
话题: simple话题: error话题: limit话题: run