I would like to create a script that runs constantly throughout the life of a Blender session. The problem is that Blender's interface "blocks" while the script is running. As a trivial example, if I run the code below:
while True:
continue
Then Blender freezes up, and I have to use xkill to stop it. How may I create a script that may be running constantly but does not stop Blender from functioning normally?

xkilland you wont lose your work. – ideasman42 Jun 01 '13 at 04:56