How are malloc and free implemented?

后端 未结 6 1018
心在旅途
心在旅途 2020-12-16 00:42

I want to implement my own dynamic memory management system in order to add new features that help to manage memory in C++.

I use Windows (XP) and Linux (Ubuntu). Wh

6条回答
  •  别那么骄傲
    2020-12-16 01:07

    garbage collector is slow

    This is a completely meaningless statement. In many practical situations, programs can get a significant performance boost by using a Garbage Collector, especially in multi-threaded scenarios. In many other situations, Garbage Collectors do incur a performance penalty.

提交回复
热议问题