if it is are there any docs regarding that?
Does PHP4 supports Exception Handling??
Moderator: General Moderators
Yeah, you will get performance losses from using pcntl_fork() since it's forking more processes. PHP wasn't made for this sort of programming really.... in fact it was enevr meant to be anything like as powerful as it is now... some people just liked it too muchptobra wrote:What about the performance issues if we are creating processes using pcntl_fork();
Any other thoughts and example to support the processes control functions in php.
Can we use declare() and ticks to mimick multithreading. How??
That doesn't make any sense. A server is a computer.Jenk wrote:The reason Java can implement threading so well, imo, is because it is more of a client run environment. The user's machine does a lot of the work with the Java Runtime.. In PHP/ASP/etc. it's the server that does it all.
Often with Java developed applications, the load is shared between client and server, from the apps I have seen, a substantial amount of the 'load' per-connection is done by the client and not the server. Granted the server will perform more because of multiple connections.d11wtq wrote:That doesn't make any sense. A server is a computer.Jenk wrote:The reason Java can implement threading so well, imo, is because it is more of a client run environment. The user's machine does a lot of the work with the Java Runtime.. In PHP/ASP/etc. it's the server that does it all.
...
PHP works quite literally like reading a script. It's just read linearly from top to bottom once it's been parsed. That's it.
No. It doesn't matter how you try to explain it. PHP can only do ONE thing at a time. Period.ptobra wrote:Can we achieve Synchronization of variables or code blocks in PHP???
:O