首页 | 本学科首页   官方微博 | 高级检索  
     

基于智能指针的垃圾收集器的研究与实现
引用本文:王立平,吴一民. 基于智能指针的垃圾收集器的研究与实现[J]. 广东电脑与电讯, 2009, 0(1)
作者姓名:王立平  吴一民
作者单位:华南理工大学计算机科学与工程学院,广东,广州,510006;华南理工大学计算机科学与工程学院,广东,广州,510006
摘    要:内存泄漏是软件开发过程中最令人棘手的问题之一。通常,使用垃圾收集机制自动进行内存管理,以减轻程序员的负担。通过研究智能指针以及现有垃圾收集机制的工作原理,本文首先设计出一个基于c++智能指针的垃圾收集器。实验结果表明,该垃圾收集器不仅满足了应用程序的要求,且具有良好的可扩展性。对于使用c++等保守式程序设计语言进行大型软件的开发而言,该垃圾收集器具有一定的理论价值和实用价值。

关 键 词:智能指针  垃圾收集器  多线程  引用计数  C++

The Research and Implementation of Garbage Collector Based on Smart Pointer
Wang Liping Wu Yimin. The Research and Implementation of Garbage Collector Based on Smart Pointer[J]. Computer & Telecommunication, 2009, 0(1)
Authors:Wang Liping Wu Yimin
Affiliation:South China University of Technology;Guangzhou 510006;Guangdong
Abstract:Memory leak is one of the most intractable problems in the software development process.Typically,automatic garbage collection mechanism is used for memory management,in order to reduce the burden on the programmer.In this paper,a garbage collector is first designed on the basis of c++ smart pointer,through research on working principles of both smart pointer and existing garbage collection mechanism.The experiments show that the garbage collector an meet the need of application program and is excellent sca...
Keywords:C
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号