current position:Home>Linux system programming 43 file descriptor
Linux system programming 43 file descriptor
2022-02-04 16:38:11 【sinat_ thirty-six million seventy thousand four hundred and eig】
gcc The default generated executable is a.out file
PCB Process control block / Process descriptors
Essence is a structure , One of the members is a pointer , Pointer to file descriptor table .
File descriptors are stored in the file descriptor table . In essence, the file descriptor table stores pointers . If you're pulling down , In fact, it is the mapping corresponding to the key value .fd What is returned is the index of the array .
The operating system doesn't want you to know him , I don't want you to study it , So the specific implementation details will be hidden from you .( A little bit like cpp Information concealment ).
A process can open up to 1024 File .
The file descriptor table also follows such a principle : The newly opened file descriptor must be the smallest one available . The standard input , standard output Standard error Although the file descriptor is 0 1 2 , But when not recommended , Use these three numbers directly , Instead, use the corresponding macro .STDIN_FILENO STDOUT_FILENO STDERR_FILENO.
copyright notice
author[sinat_ thirty-six million seventy thousand four hundred and eig],Please bring the original link to reprint, thank you.
https://en.cdmana.com/2022/02/202202041638094883.html
The sidebar is recommended
- Questions about mov assembly code
- Use matlab to solve the following experimental reports
- File loss in VC + + Project
- Please answer the questions about # C #!
- When docker mounts the directory, there are files in the directory before the container is mounted. If the host host mount directory is empty, the files in the container will be deleted after mounting
- What's wrong with this code
- Problems after Java compression and C # decompression
- How to batch delete SSM + layui? Who has an example to refer to
- How to obtain the external network IP on the server
- What is the optimistic lock of the database?
guess what you like
-
What are the applicable scenarios of the incremental scheduling strategy based on timestamp in DTS data integration?
-
What is the concept of spark lineage?
-
What is the pessimistic lock of the database?
-
How should MapReduce optimize the method in io transmission?
-
What is the concept of task in spark?
-
What is the background information of configuring data integration tasks between RDS and MySQL?
-
What are the considerations for configuring data integration tasks between RDS and MySQL?
-
What are the functional limitations of configuring data integration tasks between RDS and MySQL?
-
What is the cost description of configuring data integration tasks between RDS and MySQL?
-
What is quick Bi?
Random recommended
- What are the steps to configure the data integration task between RDS and MySQL?
- What are the four features of MySQL transactions?
- What are the data skew phenomena in MapReduce?
- What is the impact of stopping data integration tasks in DTS?
- What is the difference between quick Bi and power Bi in data source connection?
- What is the implementation principle of the four features of MySQL transactions?
- What is the impact of restoring data integration tasks in DTS?
- What are the fault tolerance methods in spark?
- What is the impact of deleting data integration tasks in DTS?
- What are the implementation ideas of transaction acid feature of MySQL?
- What is the difference between quick Bi and power Bi in data processing and modeling?
- What are the operational steps for managing data integration tasks in DTS?
- What are the five advantages of spark?
- What are the operation steps of modifying scheduling policy in DTS?
- What are the similarities and differences between MapReduce and spark?
- What are the differences between quick Bi and power Bi in visual presentation and report making?
- How does MapReduce specify the number of CPUs at runtime?
- How to write SQL to effectively use composite index?
- What is the difference between quick Bi and power Bi on the mobile end?
- How does MapReduce specify the size of runtime memory?
- What is the explanation of the scheduling policy in DTS?
- What are the instructions for modifying the scheduling effective date in DTS?
- What are the instructions for modifying the scheduling cycle in DTS?
- What are the streaming data writing functions in maxcompute?
- What will happen to the database self incrementing primary key?
- How does MapReduce tune the operating system?
- What are the performance advantages of streaming data writing in maxcompute?
- What is the description of modifying the task failure policy in DTS?
- How does MySQL master-slave replication work?
- What is the technical architecture of streaming data writing in maxcompute?
- What is the background information of monitoring alarm configured in DTS?
- What are the reasons for the delay of master-slave synchronization in MySQL?
- What are the operation steps for configuring monitoring alarms in DTS?
- Server in zookeeper A = B: C: D what do they mean?
- What is the query acceleration function in maxcompute?
- What is the solution to the master-slave synchronization delay of MySQL?
- What parameters are frequently adjusted when running MapReduce tasks?
- What is the technical architecture of query acceleration in maxcompute?
- What are the operation steps of viewing historical tasks in DTS?
- In 2020, Alibaba Android classic: after getting the offer, Alibaba fished up the resume again