Linux 查看 glibc 版本
Linux 大约 1143 字方法一
ldd --version
输出
bash-4.4$ ldd --version
ldd (GNU libc) 2.28
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
方法二
执行库文件
/lib64/libc.so.6
或者
/lib/libc.so.6
输出
bash-4.4$ /lib64/libc.so.6
GNU C Library (GNU libc) stable release version 2.28.
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 8.5.0 20210514 (Red Hat 8.5.0-10.0.2).
libc ABIs: UNIQUE IFUNC ABSOLUTE
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.
方法三
查看软连接
ls -l /lib64/libc.so.*
或者
ls -l /lib/libc.so.*
输出
bash-4.4$ ls -l /lib64/libc.so.*
lrwxrwxrwx 1 root root 12 Jun 17 2022 /lib64/libc.so.6 -> libc-2.28.so
补充
glibc
提供的malloc
/free
系列函数来进行内存的分配。
Linux
中malloc
的早期版本是由Doug Lea
实现的,它有一个严重问题是内存分配只有一个分配区(arena
),每次分配内存都要对分配区加锁,分配完释放锁,导致多线程下并发申请释放内存锁的竞争激烈。
阅读 201 · 发布于 2023-08-07
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb扫描下方二维码关注公众号和小程序↓↓↓

昵称:
随便看看
换一批
-
Spring @EventListener 加载流程阅读 1807
-
Java 遍历文件夹阅读 1252
-
PostgreSQL 错误: 编码 "UTF8" 的字符 0x0xc9 0x99 在编码 "GBK" 没有相对应值阅读 6797
-
Spring Boot 代码中生成 MultipartFile 对象阅读 674
-
Java 并发编程之 ConcurrentHashMap 1.8 源码分析阅读 1188
-
Spring Native 打包成 exe 可执行文件阅读 1686
-
SQL Server 修改计算机名后修改服务名阅读 1891
-
Spring Boot Thymeleaf 国际化 i18n阅读 271
-
数据结构:满二叉树和完全二叉树阅读 2352
-
Rust 标准库 API Result阅读 432