Posts Tagged ‘first in first out’

FIFOs are a very simple tool for communicating between processes. And using them in python is very easy. Simply call os.mkfifo(<path>) and treat the FIFO like any other file. For example, we can create two simple python scripts, one for sending and one for receiving. import os path = “/tmp/my_program.fifo” os.mkfifo(path) fifo = open(path, […]