TSO stands for "Terminate but stay outside". It means such programs which release the main memory after execution of the program.
TSR stands for "Terminate but stay reside". It means such programs which don't release main memory even after execution of program.