开发者

PHP Cli -Helpful Information when developing backend processes

I rea开发者_开发百科lly just wanted to know a bit more about the PHP Cli with a few more specific questions that I had.. I know that it is much better to use the CLI for more intense background processes than using php on apache, as it helps (save memory?).. however I'm wondering can you run multiple instances of the cli concurrently? IE: having multiple crons run different commands via the CLI? or how exactly does that work?

I have numerous background processes that I need to run, which are pretty intensive and I wanted to write them all via the CLI so they would not disturbe apache, and just wanted a little more information on how exactly it functioned, if it allowed multiple instances of it to run at a time with different items.

Thank you in advance for your kindness and help.


Yes, you can have multiple cronjobs running simultaneously - they run as different processes, do not interfere with eachother.
I have a datamining site with 7 different cronjobs, at least one of them is almost always running, but usually 2+ do at the same time.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜