话题评论 ( 1 )
# |
|
= |
---|---|---|
南柯 | 2023 | |
cxlove | 1970 | |
vainner | 1763 | |
4 | 1000310428赵成帅 | 1718 |
5 | XiaoWen | 1710 |
6 | 1000380213洪伟焕 | 1701 |
7 | weiben | 1684 |
8 | Jungle.Wei | 1678 |
9 | 1100310131曾翔宇 | 1664 |
10 | hongwh | 1653 |
dfs
21
implementation
19
dp
13
string
11
math
11
big number
10
combinatorics
9
number theory
9
happyoj
5
brute force
4
springboot
4
蓝桥
3
bfs
3
javascript
3
greedy
3
如梦令
3
data structures
2
Copilot
2
linux
2
xor
2
sortings
2
probabilities
2
graph
2
divide and conquer
2
江南春
1
python
1
telnetlib
1
cron
1
docker
1
https
1
可见该函数中会申请内存,而malloc内部会有锁.一旦在信号处理函数(冲断)中调用,可能导致重入,从而引起死锁.
同时该函数时线程安全的,可以在多线程中使用,因为内部有锁,保证了不可重入.