当前位置:网站首页>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
边栏推荐
- 交叉碳市场和 Web3 以实现再生变革
- GDB的使用
- At the same time, the problems of height collapse and outer margin overlap are solved
- Three characteristics of volatile keyword [data visibility, prohibition of instruction rearrangement and no guarantee of operation atomicity]
- 解决tp6下载报错Could not find package topthink/think with stability stable.
- Oracle creates tablespaces and modifies user default tablespaces
- Usereducer basic usage
- Detailed explanation of constraints of Oracle table
- SSM project deployed in Alibaba cloud
- Zero copy technology
猜你喜欢

校园外卖系统 - 「农职邦」微信原生云开发小程序
![[point cloud series] full revolutionary geometric features](/img/00/701ba2f8130948329404dc4629ca46.png)
[point cloud series] full revolutionary geometric features

交叉碳市场和 Web3 以实现再生变革

零拷贝技术

Isparta is a tool that generates webp, GIF and apng from PNG and supports the transformation of webp, GIF and apng

Special window function rank, deny_ rank, row_ number
![MySQL [SQL performance analysis + SQL tuning]](/img/71/2ca1a5799a2c7a822158d8b73bd539.png)
MySQL [SQL performance analysis + SQL tuning]
![MySQL [read / write lock + table lock + row lock + mvcc]](/img/a9/ace85899a01a7d4fd80b2e631e44d6.png)
MySQL [read / write lock + table lock + row lock + mvcc]

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

为什么从事云原生开发需要学习容器技术
随机推荐
Longitude and latitude position of provincial capitals in China
QT调用外部程序
聯想拯救者Y9000X 2020
零拷貝技術
面试官给我挖坑:单台服务器并发TCP连接数到底可以有多少 ?
Oracle job scheduled task usage details
QT calling external program
Tangent space
Detailed explanation and usage of with function in SQL
Explanation of input components in Chapter 16
【视频】线性回归中的贝叶斯推断与R语言预测工人工资数据|数据分享
ACFs file system creation, expansion, reduction and other configuration steps
Oracle database recovery data
sys. dbms_ scheduler. create_ Job creates scheduled tasks (more powerful and rich functions)
Database transactions
TCP reset Gongji principle and actual combat reproduction
Oracle generates millisecond timestamps
Dolphin scheduler scheduling spark task stepping record
Window analysis function last_ VALUE,FIRST_ VALUE,lag,lead
Interval query through rownum