How can one create a thread that runs in the background of the main program that periodically checks a database for changes. If a change is picked up a method will be called.
Any help would be appreciated.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
posted 5 years ago
Iv tried to create a simple thread that checks the database every 5 seconds but im getting errors on the sleep function, it doesnt recognise it..Im just trying to make sure that this approach is good and possible.