[offtopic]

Polling ("P") vs. Callbacks ("C") - an explanation
P and C are two ways to for instance retieving input, Polling means to activly ask if there is nore input.
P means to repeatidly ask "Has
it happened yet?" and then continue to do so untill something happens.
C are functions called when something happens, for instance in Win32 there is an callback function (commonly: read: for HLL/Template code) named WndProc which is an function with a specific prototpe, it's called when ever an event occurs eg WM_PAINT (when the window needs to be repainted).
Polling is usually rather "give me all CPU time", and callbacks are like, ok, now I can do something else untill something happens or "ok, now this function will handle this event now I can move on with my life as a thread".
Naturally there are times where C or P is best or both do equally good (or bad) - it's just a matter or "many things" :P
[/offtopic]