some question of Thread and Process in php
1)
If I run: "php myphp.file" in command line, sure it is a process of php. I can see it by "ps" command. But if that is run php script by Apache, It should be a process, or a thread belong to Apache?
2)
How can start a lot of thread by php? The program run by function "include()" is a process or thread? I heard someone said just object can be use in thread, isn't it?
3)
I need to run many php program script simultaneously, I found the "include()" run them one by one, that's not right. How can I run them at the same time?
4)
Which spend more resource of system? thread or process?
Thanks help.