I am interested in building a system that uses co-operating agents to parse events. Is Pharo a suitable system for this? I ask because given that it is single threaded, I wondered whether running multiple agents would present any sort of problem. Has anyone got experience of building something like this? And, if so, what did you use for your basic queue? Is there a suitable FIFO style queue within Pharo? Cheers Andy
Hi Andy,
On 21 Dec 2014, at 20:00, Andy Burnett <andy.burnett@knowinnovation.com> wrote:
I am interested in building a system that uses co-operating agents to parse events.
Is Pharo a suitable system for this? I ask because given that it is single threaded, I wondered whether running multiple agents would present any sort of problem. Has anyone got experience of building something like this? And, if so, what did you use for your basic queue? Is there a suitable FIFO style queue within Pharo?
Cheers Andy
The standard VM is using a single OS process (and thus uses a single core) but manages its own user land threads called Processes. The cool thing is that you can read/understand all this threading code (ProcessorScheduler, Process, Semaphore, Monitor, Delay, ..). There few if any limits to the amount of processes you can have. To answer the second question: I believe SharedQueue is the class you should be looking at (first). Sven
participants (2)
-
Andy Burnett -
Sven Van Caekenberghe