Windows Service or Scheduled Task, which one do we prefer?

后端 未结 10 1820
时光取名叫无心
时光取名叫无心 2020-12-16 12:07

If we need to write a program that works periodically, which way do we prefer? Writing a windows service or writing a console application which works as scheduled task?

10条回答
  •  粉色の甜心
    2020-12-16 13:04

    Avoid a service unless you must use it.

    It is a process - which means it runs all the time. Gratitious use of system resources is bad practise.

    I personally find it insulting that other people have their process executing 24/7 on MY computer when it is entirely unnecessary. It's MY performance they're using up. I disable all non-necessary background services.

提交回复
热议问题