#encoding=utf-8 from threading import Thread from multiprocessing import Process import multiprocessing ''' Author liuyancong ''' class My_Job_With_Thread(Thread): def run(self): t_flag = True b = None try: b = self._Thread__target(*self._Thread__arg…
py2自带Queue实现了3类队列 先搞清楚几个单词 Queue模块实现了三类队列: FIFO(First In First Out,先进先出,默认为该队列), 我们平时泛指的队列, LIFO(Last In First Out,后进先出) 基于优先级的队列.以下为其常用方法: 队列一般有 push pop size empty等 先进先出 q = Queue.Queue(maxsize) 后进先出 a = Queue.LifoQueue(maxsize) 优先级 Queue.PriorityQ…