avatar
simple simple question# Unix - 噫吁兮,危乎高哉
d*o
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.
avatar
j*e
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.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。