Re: Best (simplest) way to share data between processes

Liste des GroupesRevenir à cl python 
Sujet : Re: Best (simplest) way to share data between processes
De : ram (at) *nospam* zedat.fu-berlin.de (Stefan Ram)
Groupes : comp.lang.python
Date : 06. Jul 2024, 13:32:53
Autres entêtes
Organisation : Stefan Ram
Message-ID : <mutex-20240706123143@ram.dialup.fu-berlin.de>
References : 1
Chris Green <cl@isbd.net> wrote or quoted:
Would a mutex of some sort around each I2C transaction (i.e. complete
A2D reading) be a better way to go?

  I not an expert here, but from what I heard, you could use
  a named POSIX semaphore as a kind of system-wide mutex.

  Or, the single process reading the A2D values could write
  them to a shared memory segment the access to which is
  controlled by a mutex.

  Or, you could use a message queue (like POSIX mq) to
  distribute readings.

  But why overengineer? If you feel comfortable with the file
  solution, go for it! The only drawback might be that it's a
  bit slower than other approaches.

Date Sujet#  Auteur
6 Jul 24 * Best (simplest) way to share data between processes13Chris Green
6 Jul 24 +- Re: Best (simplest) way to share data between processes1Stefan Ram
6 Jul 24 +* Re: Best (simplest) way to share data between processes2Piergiorgio Sartor
8 Jul 24 i`- Re: Best (simplest) way to share data between processes1Chris Green
7 Jul 24 +* Re: Best (simplest) way to share data (Posting On Python-List Prohibited)5Lawrence D'Oliveiro
8 Jul 24 i`* Re: Best (simplest) way to share data (Posting On Python-List Prohibited)4Chris Green
8 Jul 24 i +* Re: Best (simplest) way to share data2Stefan Ram
9 Jul 24 i i`- Re: Best (simplest) way to share data1Chris Green
9 Jul 24 i `- Re: Best (simplest) way to share data (Posting On Python-List Prohibited)1Lawrence D'Oliveiro
8 Jul 24 +- Re: Best (simplest) way to share data between processes1Barry
8 Jul 24 +- Re: Best (simplest) way to share data between processes1MRAB
8 Jul 24 +- Re: Best (simplest) way to share data between processes1Barry Scott
7 Jul 24 `- Re: Best (simplest) way to share data between processes1Left Right

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal