← BYTES
Operating System·Starter·Ref: 14.1.11

What is a file descriptor, at a basic level?

Have a question about this video? Mention reference 14.1.11 when you contact us.

a.The actual physical file stored on disk
b.A permanent name given to a file at creation time
c.A small integer that a process uses to refer to an open file, socket, or other I/O resource it has access to
d.A type of file compression algorithm
When a process opens a file, socket, or pipe, the OS returns a small integer (the file descriptor) that the process then uses in subsequent read/write/close calls to refer to that specific open resource -- the descriptor itself is just a lookup key into the kernel's per-process table of open resources, not the resource's actual name or content.

Find this on YouTube & Instagram

Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:

#BYTES#BYTES14111#OperatingSystem