How to implement the timer event like WM_TIMER in windows.
My requirement is like this
I have one thread which polls the serial port for data. I dont want my poll thread to run all the time. I want to setup timer it should poll every 2000 milli secounds.