You're only going to get true "at the same time" if you've really got a multi-core CPU available.
Otherwise, it's just faked by the OS by interleaving both loops very quickly.
In the same way that TV is only a rapid sequence of still images, but you perceive the result as motion.
How well the OS can manage this illusion is in part down to the nature of your "Do Stuff".
Salem
Posting Sage
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953