首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > memslab

memslab

  • 资源大小:17.09 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签:

资 源 简 介

Description This is an enhanced SLAB algorithm implementation in application layer, which provides O(1) memory allocating and efficient memory recycling. application layer slab allocator implementation O(1) allocating / free: almost speed up 500% - 1200% vs malloc re-implementation of page supplier: with new "SLAB-Tree" algorithm memory recycle: automatic give memory back to os to avoid wasting 30% - 50% memory wasting platform independence Since SUNOS has presented slab allocation theroy, many OSs have implemented slab in their kernel. But it requires kernel-layer interfaces such as page supply etc. So this library improves slab"s algorithm and brings the interfaces of slab into application layer. Example ``` #include "imembase.h" #include int main(void) { char *ptr; /* init kmem interface */ ikmem_init(0, 0, 0); ptr

文 件 列 表

memslab-1.0.21
imembase.c
imembase.h
README
testbench.c
testmain.c
VERSION.ini
COPYRIGHT

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP