|

welcome to my space
RSS Feed

PHP Thread question

Saturday Mar 13, 2010
  • I was just talking to a few people up here at work about CF and the limited number of threads it can handle on a Unix box. From what I was told, Allaire only recommends 3 per server. 3? Gesh.

    Anyhow, that go me thinking, does anyone know to tell how many threads php can handle/has handled? Something like this would prob help me get PHP a foot in the door around here.

    Any info is appreciated.

    Thanks

    Chris


  • Three is a good number actually, and I would guess that they're referring to a worker thread pool. Whenever you can get a job done with fewer threads in a server environment the better off you are. The more threads you have running the more processor time is going to be devoted to context switching between threads.

    I wrote a kick-ass high performance embedded HTTP server for Win32 using overlapped io and completion ports and use the rule of thumb - 2 worker threads per CPU. I wouldn't say that they're off base at all.

    Now as far as php goes I don't believe it talks in threads per-se. The CGI version is pretty self-explanatory requiring a process to be started each time it's called. The SAPI modules are another story and I'm not too familiar with the php i nsides.







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about PHP Thread question , Please add it free.

    edit