signaling between threads and nodes example