Sorry for postin it in GD..but thought it best suite here since there is no specific algorithm board..
Well how do user action programs work... For example when a key mouse button is pressed do sometin.. They work so neat.. but when i implement it in my programs (DOS ) I use a continous loop to check the mouse button every loop cycle before doin the required operation..THis seems to be so primitive and taking up resources and slows the entire program... How do languages like VB etc manages it.. (mouse actions..) do they also run an infinite loop to check the mouse status or does it make use of sometin like interrupts etc..
Vasanth