POSIX Timer : Signal Handler for Timer freezes
问题 This post is related to: POSIX TIMER- Have multiple timers I want to call a function in the SignalHandler. This function is a TCP socket client(getSpeed). It gets data from a server every time the timer ticks one second and sends a signal which then calls the corresponding handler. First of all I am not sure if it is good practise to call a function from a signal handler. Now the problem is, my code freezes randomly whenever I execute this program which talks to a server. If this way of