摘要
该文初步探讨了phthon多线程应用的两种方式:_thread模块和threading模块,两种实现途径各有优点和缺点,_thread模块是phthon的低级方式.接口更加直接和灵活;threading模块是thread的二次封装,使用起来更加方便,具体应用要根据实际情况灵活选择。
This paper discussed a multi-threaded applications phthon two ways: thread module and the threading module, both ways have advantages and disadvantages to achieve, _thread phthon low-levelmodule is the way, the interface is more direct and flexible; threading- module is the thread of Secondary package is more convenient to use, the specific application the flexibility to choose according to the actual situation.
作者
谢红
XIE Hong (Core and File Administrative Offices, Exploration and Development Institute ofJidong Oilfield, Tangshan 063000, China)
出处
《电脑知识与技术》
2011年第7期4739-4740,共2页
Computer Knowledge and Technology
关键词
多线程
机制
初步探讨
multi-threaded
mechanism
preliminary study