V2EX  ›  英汉词典
Enqueued related words: StdIn, StdOut, StdErr

File Descriptor

定义 Definition

文件描述符:在类 Unix 操作系统中,用来标识一个已打开的文件、管道、套接字等 I/O 资源的整数编号。程序通过文件描述符对这些资源进行读取、写入、关闭等操作。(也常简称为 FD

发音 Pronunciation (IPA)

/faɪl dɪˈskrɪptər/

例句 Examples

The program reads data from file descriptor 0.
程序从文件描述符 0 读取数据。

If the server leaks file descriptors, it may eventually fail to accept new connections even though the CPU and memory look fine.
如果服务器发生文件描述符泄漏,即使 CPU 和内存看起来正常,最终也可能无法再接受新的连接。

词源 Etymology

file(文件)+ descriptor(描述符、标识符)。该术语在 Unix 的 I/O 设计中被广泛使用:系统用一个小整数来“描述/指代”进程已打开的资源,从而提供统一的读写接口。

相关词 Related Words

文献作品 Literary Works

  • Advanced Programming in the UNIX Environment(W. Richard Stevens, Stephen A. Rago)
  • The Linux Programming Interface(Michael Kerrisk)
  • UNIX Network Programming(W. Richard Stevens 等)
  • The Unix Programming Environment(Brian W. Kernighan, Rob Pike)
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   718 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 14ms · UTC 21:11 · PVG 05:11 · LAX 13:11 · JFK 16:11
♥ Do have faith in what you're doing.