Re: question about multiprocessing

2010-06-26 Thread hywhy
thanks,firend. I have a try with SyncManager, Is there any problem in my code? from multiprocessing.managers import SyncManager,BaseProxy import multiprocessing import Queue class ResourceController(object): def __init__(self): self.text = 'Hello world!' self.queue

Re: question about multiprocessing

2010-06-24 Thread hywhy
thanks,friend! I wanna use Queue to share objects,but on windows, the multiprocessing module can‘t do this。 Is there any way to solve this problem! thanks -- View this message in context: http://old.nabble.com/question-about-multiprocessing-tp28940614p28982744.html Sent from the Python - python-

question about multiprocessing

2010-06-20 Thread hywhy
first sorry for my poor english. Is there any problem in the follow code? thanks! from multiprocessing.managers import BaseManager import Queue class CrawlerManager(BaseManager): pass downloader_queue = Queue.Queue() downloader_queue.put('hello') CrawlerManager.register('get_down