I need to have a thread in my app that will be long running (it is a job scheduler, Cron like) and will be most of the time sleeping. So not much CPU and IO. What would you advise me for this . Does a Task with long running option is the proper way to handle this or should I rely on the old fashion Thread and let that thread lives its own life?
A Task with the long running option is fine. It will create a new Thread in the background and you don't have to bother about the details.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With