Association between unix processes and opened files
Source: Internet
Author: User
The unix process is associated with the opened file. The UNIX process and the file are associated with www.2cto through the file table. the comv node represents the real file metadata (linux only has the I node, but the function is similar). every process creates a file table so that each file descriptor can be used for the same file... association between unix processes and opened files
UNIX processes and files are associated through file tables.
Www.2cto.com
The v node represents the real file metadata (linux only has the I node, but the function is similar)
Each process creates a file table so that each file descriptor can have its own offset and open status (such as read-only and write-only) for the same file, such
This knowledge is helpful for correct concurrent file operations.
Www.2cto.com
In addition, the two file descriptors can also point to the same file table item. for example, the child process and parent process that just fork () will share the same file table item.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service