[Python] How to maintain synchronization between distributed python processes?

Discussão em 'Python' iniciado por Stack, Dezembro 1, 2024.

  1. Stack

    Stack Membro Participativo

    I have a number of workstations that run long processes containing sequences like this:

    x = wait_while_current_is_set
    y = read_voltage
    z = z + y


    The workstations must maintain synchronization with a central unit that runs processes like this:

    x = set_current
    y = wait_while_voltage_is_read
    z = z + y


    It's actually implemented like this on both client and server:

    x = set_current
    y = read_current
    z = z + y


    --with "set_current" and "read_current" implemented as library functions from the client and server libraries.

    How do I synchronize parallel distributed asynchronous processes in python?

    Continue reading...

Compartilhe esta Página