--- Quote Start ---
originally posted by mendonca@May 15 2006, 07:50 PM
sorry for my confused reply, paolo.
actually i'm not sure yet about the advantages to use pio cores instead a shared memory. my problem with the shared memoy is the delay that processes have waiting for the release of mutexç with pio cores i hope not to have this problem.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=15387)
--- quote end ---
--- Quote End ---
Everything depends on how much data you need to share, and on how the communication works. Implementing a message passing mechanism that does not waste all the time in synchronization is possible!
With PIO, you'll get probably one word at a time, bu you'll need to handle the handshaking, and that will require probably more time than doing it with shared memory + mutex.
In any case, the problem of conflicts between different accesses to the same memory as you cited before will remain.
How much data do you need to move from one CPU to the other?
Take also a look at the FIFO example on the Evidence literature page (see one of the posts below in this page), you can adapt it to have a more coarse grained message passing.
bye
Paolo