定长内存池
定长内存池
vector、string、
基于google开源原型项目tcmalloc,实现一个高并发内存池,实现了多线程并发的内存管理,用来代替系统内存的分配函数(malloc,free)
完善模拟实现 string、vector、list容器
C++11线程库的学习使用
两个线程交替打印奇偶数 每个线程都会防止自己连续打印两次 每个线程的三种情况:1、等待获取锁;2、条件变量wait,同时unlock,允许其他线程获取锁‘;3、处于for循环体外
Contributions last year: 163
Max continuous contributions: 14
Recent contributions: 1
Commits, issues, and pull requests will appear on your contribution graph. Only when the email address used for the commits in local configuration is associated with your GitOSC account, the commits' contribution will be counted.