in reply to threads as service?

Have a look at Win32::Daemon::Simple