Implementing a memory manager in multithreaded C/C++ with dynamically sized memory pool?

前端 未结 4 1107
一生所求
一生所求 2021-02-20 10:08

Background: I\'m developing a multiplatform framework of sorts that will be used as base for both game and util/tool creation. The basic idea

4条回答
  •  粉色の甜心
    2021-02-20 10:33

    If you're looking to write your own malloc()/free(), etc., you probably should start by checking out the source code for existing systems such as dlmalloc. This is a hard problem, though, for what it's worth. Writing your own malloc library is Hard. Beating existing general purpose malloc libraries will be Even Harder.

提交回复
热议问题