(Pseudo) multi-tasking?

In the arduino application there is a blink without delay example, under the examples menu. This shows you what you need to do.