signal handler function in multithreaded environment signal handler function in multithreaded environment multithreading multithreading