First,
you should change your name before a bartender asks you to. This site has a naming policy that basically want you to use two names, seperated by a space, preferably your real name.
As to your problem, look at using a producer/consumer
pattern. You'll have two threads that will share a common data structure. One thread just reads from the scanner and posts each new event to this data structure, and a second thread periodically polls the data structure for new events, and acts on any it finds, then removes them from the data structure after it has finished processing.
[ April 03, 2002: Message edited by: Rob Ross ]