PHPマニュアル/PEARマニュアル | ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot

What is a Daemon? | JavaScript入門&応用&リファレンスなら「JavaScriptist」

  

What is a Daemon?

Some people use cronjobs for the same Possible use cases. Crontab is fine but it only allows you to run a PHP file every minute or so.

  • What if the previous run hasn't finished yet? Overlap can seriously damage your data & cause siginificant load on your machines.

  • What if you can't afford to wait a minute for the cronjob to run? Maybe you need to trigger a process the moment a record is inserted?

  • What if you want to keep track of multiple 'runs' and store data in memory.

  • What if you need to keep your application listening (on a socket for example)

Cronjobs are a bit rude for this, they may spin out of control and don't provide a framework for logging, etc. Creating a daemon would offer more elegance & possibilities. Let's just say: there are very good reasons why a Linux OS isn't composed entirely of Cronjobs :)

忘却曲線を使ってこの知識を確実に記憶に残す

フォーラムで「What is a Daemon?」について話す
各種マニュアル: PHPマニュアル | PEARマニュアル | Smarty(英語)マニュアル | PHP-GTKマニュアル | What is a Daemon?」をGoogle検索
copyright © 1997-2024 PHP ドキュメント作成グループ(ライセンス). provided by php spot. マニュアル: