Callbacks in Threads not Called

Does this application work for server to call the callback function in client?