Demo to show inter thread communication