#1888 multiprocessing to Actors

Mic Sun 6 May 2012

Hello, How to convert the second example with Consumer and Task classes from this site http://www.doughellmann.com/PyMOTW/multiprocessing/communication.html to Fantom's Actors?

Thank you in advance.

brian Sun 6 May 2012

Fantom's actors do not support inter-process communication. They are just a foundational layer to build actor based solutions (you would construct something like that on top of the actor framework). But when using Python the preferred solution is often to use multiple processes since the GIL prevents effective concurrency. But in the JVM, I think it is better to just one process with lots of threads (actor pools).

Mic Sun 6 May 2012

Thank you, but I meant on this side http://www.doughellmann.com/PyMOTW/multiprocessing/communication.html "Passing Messages to Processes" and not "Signaling between Processes".

brian Sun 6 May 2012

You might want to check out example code from topic 1567

Mic Mon 7 May 2012

Thank you.

Login or Signup to reply.