sample program that uses MPSC ring buffer