当前位置:网站首页>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
边栏推荐
- Logstash数据处理服务的输入插件Input常见类型以及基本使用
- MySQL index [data structure + index creation principle]
- Common commands of ADB shell
- 零拷贝技术
- Parameter comparison of several e-book readers
- Set Jianyun x Feishu Shennuo to help the enterprise operation Department realize office automation
- Oracle database combines the query result sets of multiple columns into one row
- Influence of openssh version on SSH mutual trust creation in RAC environment
- Oracle clear SQL cache
- Static interface method calls are not supported at language level '5'
猜你喜欢
Dolphin scheduler configuring dataX pit records
JUC interview questions about synchronized, ThreadLocal, thread pool and atomic atomic classes
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
Dolphin scheduler integrates Flink task pit records
Oracle job scheduled task usage details
Apache seatunnel 2.1.0 deployment and stepping on the pit
[point cloud series] summary of papers related to implicit expression of point cloud
Usereducer basic usage
Tangent space
Lenovo Savior y9000x 2020
随机推荐
[point cloud series] summary of papers related to implicit expression of point cloud
面试官给我挖坑:单台服务器并发TCP连接数到底可以有多少 ?
Oracle database combines the query result sets of multiple columns into one row
SSM project deployed in Alibaba cloud
Launcher hides app icons that do not need to be displayed
The difference between is and as in Oracle stored procedure
Use of GDB
Using open to open a file in JNI returns a - 1 problem
Common commands of ADB shell
What does the SQL name mean
ARGB transparency conversion
Test on the time required for Oracle to delete data with delete
About me
【重心坐标插值、透视矫正插值】原理以及用法见解
Comparison and summary of applicable scenarios of Clickhouse and MySQL database
MySQL [read / write lock + table lock + row lock + mvcc]
Special window function rank, deny_ rank, row_ number
JS time to get this Monday and Sunday, judge the time is today, before and after today
QT calling external program
Test the time required for Oracle library to create an index with 7 million data in a common way