Preparation Install libaio sudo apt install libaio1 libaio-dev compile gcc async_libaio.c -laio Just gcc foo.c is fine for the other codes. make fifo mkfifo file run cat file tee file