1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Windowsにおけるサービスとスタートアップの違い

Last updated at Posted at 2015-04-06

サービス

  • ログインしなくても起動する(=起動はブート時)
  • 基本は管理者権限Systemで動作する
    • 他にもLocal ServiceNetwork Serviceで動作させることも可能
  • システムで一つしか起動しない事(単一起動)が保証されている

スタートアップ

  • ログインしないと起動しない(=起動はログイン時)
  • ログインしたユーザ毎にプロセスが起動する(当然ながら実行ユーザはログインユーザ)
    • All Usersのスタートアップに入れた場合は全ユーザ共通の項目となる
  • 複数ユーザ間で単一起動しかできないようにする方法はC#ではフレームワークレベルで用意されている模様
    • ローカル・ミューテックスではなくグローバル・ミューテックスを使う
  • Rubyではロックファイルを用いて地味にやるしかない模様

参考資料

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?