sample of posix thread fifo