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

Python垃圾收集器原理研究及应用
引用本文:郭芬,刘明. Python垃圾收集器原理研究及应用[J]. 信息技术, 2009, 0(7): 93-97
作者姓名:郭芬  刘明
作者单位:1. 美博通通信技术,上海,有限公司,上海,200040
2. 上海惠普有限公司,上海,200040
摘    要:Python语言的主要设计目标是简洁,内存管理这类复杂工作自然不需要用户关心.在Python世界中,一切皆对象,每个对象都需要占用一定的内存空间.但使用Python的程序员不需要关心对象的内存分配和释放,这些工作都由Python解释器负责.这种自动管理内存的机制就是垃圾收集,它是一种自动回收内存资源的技术.早在20世纪50年代垃圾收集技术就已经在Lisp语言中实现了.GC变得耳熟能详得归功于Java.随着Java语言的成功,垃圾收集也成了每个程序员都熟悉的术语.本文的主要目的是简单介绍一下Python虚拟机中垃圾收集机制的实现原理,从而使每个Python程序员对Python所提供的特性有更深入的理解.

关 键 词:Python  garbage collection  mark-sweep  

Principle of Python garbage collector and its application
GUO Fen,LIU Ming. Principle of Python garbage collector and its application[J]. Information Technology, 2009, 0(7): 93-97
Authors:GUO Fen  LIU Ming
Affiliation:1.Shanghai Broadcom Ltd.;Shanghai 200040;China;2.Shanghai HP Ltd.;China
Abstract:Programming 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...
Keywords:Python  garbage  collection  mark-sweep  Python  garbage collection  mark-sweep
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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