期刊文献+

Python垃圾收集器原理研究及应用 被引量:3

Principle of Python garbage collector and its application
下载PDF
导出
摘要 Python语言的主要设计目标是简洁,内存管理这类复杂工作自然不需要用户关心。在Python世界中,一切皆对象,每个对象都需要占用一定的内存空间。但使用Python的程序员不需要关心对象的内存分配和释放,这些工作都由Python解释器负责。这种自动管理内存的机制就是垃圾收集,它是一种自动回收内存资源的技术。早在20世纪50年代垃圾收集技术就已经在Lisp语言中实现了。GC变得耳熟能详得归功于Java。随着Java语言的成功,垃圾收集也成了每个程序员都熟悉的术语。本文的主要目的是简单介绍一下Python虚拟机中垃圾收集机制的实现原理,从而使每个Python程序员对Python所提供的特性有更深入的理解。 Pmgramming for Python language is simple, the user does not consider the memories management. In the Python, every object owns the memories, but the programmer does not distribute the memories, garbage collection is responsible for the work,which appears in the early 1950' s at the lisp language with the success of Java language, every programmer understands the garbage collection. This paper presents implementation for garbage collection based on the Python, so the programmer comprehends the characteristics of the Python.
作者 郭芬 刘明
出处 《信息技术》 2009年第7期93-97,共5页 Information Technology
关键词 PYTHON GARBAGE COLLECTION mark—sweep Python garbage collection mark-sweep
  • 相关文献

参考文献1

  • 1Paul R Wilson.Uniprocessor Garbage Collection Techniques[].International Workshop On Memory Management.1992

同被引文献22

引证文献3

二级引证文献6

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部