From my other question i learned that asp.net kills my threads because 'it feels like it'. These threads are my daemons that handle thumbnail generation, registration emails and other things.
I was told to use a 'Windows Service' but what i know of, its an app you install on your machine that runs on bootup. There are several problems with using that if thats what he meant. The last time i attempted a service i remember it prove difficult and i just put the app in the startup files. anyways I AM NOT ON WINDOWS. I am on linux.
The other problems having it in a separate app is i have much code in asp.net that would need to be copied over which i dont want to do. The other is i have asp.net poke the thread using ManualResetEvent
whenever it needs it so i am not hammering the db and get immediate results. AFAIK i dont know of any way to poke another process.
How might i run this code? with asp.net? I dont think checking if the threads exist every request is a good idea. What can i do?