Questions tagged «memory»

2
动态内存分配的数据结构
想想细胞探针模型。是否有一种数据结构可以分配任何长度的连续内存块(例如,C中的malloc)并释放它们,同时避免内存分段,并在最坏情况下确定性O(log n)时间执行每个操作,其中n为内存的总大小? 通过避免内存分段,我的意思是,如果空闲单元的总数为F,那么我应该能够分配F个单元或大约F个单元的连续段。
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.