it provides a very light communication implementation used on producer-consumer model, learn from kfifo in linux kernel