Login | Register
Mic 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 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).
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".
You might want to check out example code from topic 1567
Mic 7 May 2012
Login or Register to Reply
Back | All Topics
Collapse All Expand All