send and recv event between processes in very few lines of code