Thanks for your kindly reply.
According to your experience and method, it is not widely to use signal handler to implement, more better way is to use function usleep, sleep 250ms every time and then to update.
So in the opinon of those language designer, it won't be good idea to write so many functions in the signal handler, am I right?