if __name__ == '__main__':
cm = CrawlerManager()
cm.start()
rc = cm.ResourceController()
rc.say_hello()
q = rc.get_queue()
print q.get()
--
View this message in context:
http://old.nabble.com/question-about-multiprocessing-tp28940
hywhy wrote:
> 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
With multiprocessing.SyncManager you should be able to exchange Queues
between different processes.
--
http://mail.py
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
En Sun, 20 Jun 2010 09:43:09 -0300, hywhy escribió:
from multiprocessing.managers import BaseManager
import Queue
class CrawlerManager(BaseManager):
pass
downloader_queue = Queue.Queue()
downloader_queue.put('hello')
CrawlerManager.register('get_downloader_queue', callable=lambda:
downlo
q.get()
--
View this message in context:
http://old.nabble.com/question-about-multiprocessing-tp28940614p28940614.html
Sent from the Python - python-list mailing list archive at Nabble.com.
--
http://mail.python.org/mailman/listinfo/python-list