- 论坛徽章:
- 0
|
这个问题在c/c++版块问不知是否合适。
我想了解一下file descriptor 和file handler的差别是什么?两者分别什么时候用到? 想了解这个主要是在网上看到对/proc/sys/fs/file_nr 与/proc/sys/fs/file_max的解释:
The kernel allocates file handles dynamically, but doesn't free them again at this time. The value in file-max denotes the maximum number of file handles that the Linux kernel will allocate. When you get a lot of error messages about running out of file handles, you might want to raise this limit. The default value is 4096.
网上关于file descriptor的解释比较多,但是很少有file handler的解释,希望从事linux上c/c++开发的能帮我解释一下,谢谢了
|
|