Non-GUI, single processort inter process massaging - how?

Chris Green cl at isbd.net
Tue Jul 24 06:25:05 EDT 2018


Dennis Lee Bieber <wlfraed at ix.netcom.com> wrote:
> On Mon, 23 Jul 2018 22:14:22 +0100, Chris Green <cl at isbd.net> declaimed the
> following:
> 
> >Anders Wegge Keller <wegge at wegge.dk> wrote:
> >> 
> >>  If your update frequency is low enough that it wont kill the filesystem and
> >> the amount of data is reasonably small, atomic writes to a file is easy to
> >> work with:
> >> 
> >Yes, I think you're right, using a file would seem to be the best
> >answer.  Sample rate is only one a second or slower and there's not a
> >huge amount of data involved.
> >
> 
>         If the data is small enough, putting the file into the small shared
> memory (forget if that is /dev/shm or /run/shm on the BBB) would even avoid
> wearing out eMMC/SD card.
> 
That is also a very good idea, there's /dev/shm and /run on my BBB,
/dev/shm seems to have more space.

-- 
Chris Green
·


More information about the Python-list mailing list