Following application program executes successfully on Ubuntu 16.04.
But a HANG condition is observed on Ubuntu 18.04, and Ubuntu 20.04.

The application program contains two parts Sender and...