如何用C编写线程安全,高效,无锁的内存分配器? [英] How to write a thread-safe and efficient, lock-free memory allocator in C?

查看:174
本文介绍了如何用C编写线程安全,高效,无锁的内存分配器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何用C编写线程安全,高效,无锁的内存分配器?通过高效的我的意思是:


  1. 快速分配和放大器;释放


  2. 优化内存使用情况(最少浪费,也没有外部碎片)


  3. 最小的元数据开销



解决方案

<一个href=\"http://www.research.ibm.com/people/m/michael/pldi-2004.pdf\">http://www.research.ibm.com/people/m/michael/pldi-2004.pdf

How to write a thread-safe and efficient, lock-free memory allocator in C? By efficient I mean:

  1. Fast allocation & deallocation

  2. Optimal memory usage (minimal wastage and no external fragmentation)

  3. Minimal meta-data overhead

解决方案

http://www.research.ibm.com/people/m/michael/pldi-2004.pdf

这篇关于如何用C编写线程安全,高效,无锁的内存分配器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆