chaogu ---大写的人!

共2页: 1 2 
这就是我想要的答案,谢谢你能回答我的疑问。
我这还有一篇关于内存分配的文章,对你可能有帮助,如果需要发个邮件给我。
title:MMT: Exploiting Fine-Grained Parallelism in Dynamic Memory Management
Abstract—Dynamic memory management is one of the most
expensive but ubiquitous operations in many C/C++ applications.
Additional features such as security checks, while desirable,
further worsen memory management overheads. With
advent of multicore architecture, it is important to investigate
how dynamic memory management overheads for sequential
applications can be reduced.
In this paper, we propose a new approach for accelerating
dynamic memory management on multicore architecture, by
offloading dynamic management functions to a separate thread
that we refer to as memory management thread (MMT).
We show that an efficient MMT design can give significant
performance improvement by extracting parallelism while being
agnostic to the underlying memory management library
algorithms and data structures. We also show how parallelism
provided by MMT can be beneficial for high overhead memory
management tasks, for example, security checks related to
memory management.
We evaluate MMT on heap allocation-intensive benchmarks
running on an Intel core 2 quad platform for two widelyused
memory allocators: Doug Lea’s and PHKmalloc allocators.
On average, MMT achieves a speedup ratio of 1.19×
for both allocators, while both the application and memory
management libraries are unmodified and are oblivious to the
parallelization scheme. For PHKmalloc with security checks
turned on, MMT reduces the security check overheads from
21% to only 1% on average.
一直我不懂为什么要自己去做一个内存管理啊,本身new和delete不好用吗?还是性能不高啊?性能不高的原因又是为什么啊?就算性能不高不高到那种程度?有没有数据说明一下。因为你提出一种策略总是为了解决某个问题,但是问题本身就不是一个问题,(也就是问题不成立),那解决方案也就没什么意义了。
不同意你的说法,因为高手应该具备引导学生进入一个比较高度的地方,我另一个老师(L)就是这么一个人。当然有比较笨的学生,也有比较聪明的学生,但是我的L老师能一步一步把学生引导到一个比较高的位置,就算他比较笨。(臭美一下:我自认为我还不是一个比较笨的人)@空明流转
其实,面相对像其实就是在面向过程的,比如C++,许多C++编译器就是把C++的程序转成C的程序,然后重用C的编译器。但是,面向对像又不是面向过程的。面向对象是一种思想,就像C能写出面向对象的程序来,但是不要以为C++不好,C比较难写出面向对象的程序来,C++的目的就是把面向对象的思想应用到语言上,让程序员能在语言上得到支持。
其实,语言都是其次,重要的还是思想。现在的书很多说的是面向对象的语言,但是还没有一本很好的书来诠释面向对象的思想。能在应用上去解释面向对象的书更少。希望国内能有这么个人出本这么一本书。
本人还是个学生,不对的还望包涵。
共2页: 1 2 

导航

<2011年5月>
24252627282930
1234567
891011121314
15161718192021
22232425262728
2930311234

统计

常用链接

留言簿(1)

随笔档案

搜索

最新评论

阅读排行榜

评论排行榜