当前位置:网站首页>UNIX final exam summary -- for direct Department
UNIX final exam summary -- for direct Department
2022-04-23 13:46:00 【Silent city of the sky】
Unix Final exam summary – For direct line
Short answer :
vi Editor Mode : Input , command , Last line
GCC The composition of : The preprocessor 、 compiler 、 Assembler 、 The linker
C The process of compiling a program :
1、 Preprocessing
2、 Compile into assembly code
3、 Assemble into object code
4、 link
The difference between a dynamic library and a static library
make The reason for introducing
makefile The rules of
linux Common document types
With buffer IO And unbuffered IO Differences and their common functions
Why design standards IO library , standard IO Purpose of providing buffer
Three ways of streaming reading and writing :
1 Read and write one character at a time
2 Read and write one line at a time
3 Read and write any length of content at a time
The way of stream refresh :
( Refresh the file stream
Automatically refresh :
Flow closed fclose;
exit End ;
The line buffer “\n”;
Buffer full ;
)
There are three types of buffers :
( block ( whole ) buffer
The line buffer line buffered
No buffer Unbuffered
)
The way the process starts
The way the process terminates
Process classification : The front desk , backstage , guardian
fork and vfork difference
exit and _exit difference
Two relationships of parent-child process
The solution to the zombie process
wait And waitpid The use and difference of
Writing rules of daemon
Three signal processing methods :( Ignore the signal , Perform system default actions , Capture the signal )
Semaphore message queue shared memory has its own characteristics
Shared memory implementation approach
Three types of sockets and their characteristics
Connection oriented service process 、 Connectionless service process
Refresh ,UPD server,client
The way of stream refresh :
( Refresh the file stream
Automatically refresh :
Flow closed fclose;
exit End ;
The line buffer “\n”;
Buffer full ;
)
There are three types of buffers :
( block ( whole ) buffer
The line buffer line buffered
No buffer Unbuffered
)
UDP Scope of application :( For datagram
Most of the network data is short message
Have a lot of Client
No special requirements for data security
The burden of the Internet is very heavy , But it requires high response speed
)
server:( Program initialization
Keep listening to a fixed port
received Client After the connection, establish a socket Connect
And Client Communication and information processing
receive Client adopt socket Connect the data sent , Carry out corresponding processing and return processing results
adopt socket Connect to Client Send a message
Interrupt communication with after communication Client The connection of )
client effect :( Program initialization
Connect to a Server On , establish socket Connect
And Server Communication and information processing
receive Server adopt socket Connect the data sent , Deal with it accordingly
adopt socket Connect to Server Send request information
Interrupt communication with after communication Server The connection of
)
TCP and UDP Programming differences
select Function features
Suppose the process has opened the descriptor 0、1、2
call dup2(1,3),dup The return value is 3,3
Unix Programming study exam
Experiment 1 :
link : https://download.csdn.net/download/weixin_42139772/15621050.
Experiment two :
link : https://download.csdn.net/download/weixin_42139772/15621081.
Experiment three :
link : https://download.csdn.net/download/weixin_42139772/15621095.
Experiment four :
link : https://download.csdn.net/download/weixin_42139772/15621118.
Experiment five :
link : https://download.csdn.net/download/weixin_42139772/15621123.
unix Program ( experiment + Example :
link : https://download.csdn.net/download/weixin_42139772/15621136.
Unix Final exam review in rain class :
link : https://download.csdn.net/download/weixin_42139772/15621152.
版权声明
本文为[Silent city of the sky]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230556366288.html
边栏推荐
- GDB的使用
- Exemple de méthode de réalisation de l'action d'usinage à point fixe basée sur l'interruption de déclenchement du compteur à grande vitesse ob40 pendant le voyage de tia Expo
- Test on the time required for Oracle to delete data with delete
- 交叉碳市场和 Web3 以实现再生变革
- Analysis of the problem that the cluster component GIPC in RAC environment cannot correctly identify the heartbeat network state
- Utilisation de GDB
- Cross carbon market and Web3 to achieve renewable transformation
- Detailed explanation of redis (Basic + data type + transaction + persistence + publish and subscribe + master-slave replication + sentinel + cache penetration, breakdown and avalanche)
- Migrating your native/mobile application to Unified Plan/WebRTC 1.0 API
- 集简云 x 飞书深诺,助力企业运营部实现自动化办公
猜你喜欢

Dolphin scheduler source package Src tar. GZ decompression problem

面试官给我挖坑:URI中的 “//” 有什么用?

SSM project deployed in Alibaba cloud
![[point cloud series] summary of papers related to implicit expression of point cloud](/img/71/2ea1e8a0d505577c9057670bd06046.png)
[point cloud series] summary of papers related to implicit expression of point cloud

Dolphin scheduler scheduling spark task stepping record

Logstash数据处理服务的输入插件Input常见类型以及基本使用

Special window function rank, deny_ rank, row_ number

Zero copy technology

Handling of high usage of Oracle undo

零拷貝技術
随机推荐
MySQL [read / write lock + table lock + row lock + mvcc]
Publish custom plug-ins to local server
TIA博途中基于高速计数器触发中断OB40实现定点加工动作的具体方法示例
Static interface method calls are not supported at language level '5'
为什么从事云原生开发需要学习容器技术
Interval query through rownum
Ora-600 encountered in Oracle environment [qkacon: fjswrwo]
kettle庖丁解牛第16篇之输入组件周边讲解
SAP ui5 application development tutorial 72 - trial version of animation effect setting of SAP ui5 page routing
About me
AI21 Labs | Standing on the Shoulders of Giant Frozen Language Models(站在巨大的冷冻语言模型的肩膀上)
Why do you need to learn container technology to engage in cloud native development
Leetcode brush question 897 incremental sequential search tree
Apache seatunnel 2.1.0 deployment and stepping on the pit
Django::Did you install mysqlclient?
Dolphin scheduler configuring dataX pit records
ACFs file system creation, expansion, reduction and other configuration steps
Personal learning related
OSS cloud storage management practice (polite experience)
Android clear app cache