How to run an application when the computer is locked. I want to perform system maintainence when the computer is locked.

How can I set an application to keep processing even when the computer is locked.