当前位置:网站首页>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
边栏推荐
- PG library checks the name
- Dolphin scheduler configuring dataX pit records
- Oracle generates millisecond timestamps
- JUC interview questions about synchronized, ThreadLocal, thread pool and atomic atomic classes
- AI21 Labs | Standing on the Shoulders of Giant Frozen Language Models(站在巨大的冷冻语言模型的肩膀上)
- Zero copy technology
- Oracle database recovery data
- The query did not generate a result set exception resolution when the dolphin scheduler schedules the SQL task to create a table
- Django::Did you install mysqlclient?
- Processing of ASM network not automatically started in 19C
猜你喜欢

【vmware】vmware tools 地址

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

kettle庖丁解牛第16篇之输入组件周边讲解

QT调用外部程序

Search ideas and cases of large amount of Oracle redo log

Dolphin scheduler scheduling spark task stepping record

Leetcode brush question 897 incremental sequential search tree

零拷贝技术

【视频】线性回归中的贝叶斯推断与R语言预测工人工资数据|数据分享

SAP UI5 应用开发教程之七十二 - SAP UI5 页面路由的动画效果设置试读版
随机推荐
Oracle defines self incrementing primary keys through triggers and sequences, and sets a scheduled task to insert a piece of data into the target table every second
SAP ui5 application development tutorial 72 - trial version of animation effect setting of SAP ui5 page routing
[machine learning] Note 4. KNN + cross validation
Search ideas and cases of large amount of Oracle redo log
Leetcode brush question 897 incremental sequential search tree
Part 3: docker installing MySQL container (custom port)
Double pointer instrument panel reading (I)
联想拯救者Y9000X 2020
[point cloud series] full revolutionary geometric features
Ora-600 encountered in Oracle environment [qkacon: fjswrwo]
Detailed explanation of constraints of Oracle table
PG library checks the name
Interval query through rownum
MySQL and PgSQL time related operations
[Video] Bayesian inference in linear regression and R language prediction of workers' wage data | data sharing
[andorid] realize SPI communication between kernel and app through JNI
Dynamic subset division problem
JS time to get this Monday and Sunday, judge the time is today, before and after today
ARGB transparency conversion
Launcher hides app icons that do not need to be displayed