From a student a question has been asked:
In class you said that in polling each element's status is constantly sampled, but doesn't that take up a lot of memory? Or does that data get thrown away after some time?
Polling does take resources. The opposite of polling is an interrupt. Please read our class wiki on this topic, but also please read this excellent page about the differences between polling and interrupts.