Saturday, April 24, 2010

Using PHP for Multi-Processing and Pseudo Threading

I have seen people say that PHP cannot DO everything that other programming languages like C, Perl, Python etc can do. Yes, it is correct that it does not have FEATURES that like data persistence, shared-memory and most especially, multi-threading. But those features that it lacks comes with a benefit like prevention of memory leaks etc. So, what I do believe is that you can achieve in other languages can be achieved by PHP as well. I am a strong believer of the saying "It's not the language but how you write it".



In attempt to prove that, I am working on a project that mimics multi-threading but in this case it's multi-processing using pcntl_* functions similar to how prefork.c of Apache works.


  • Related Links Widget for Blogspot

No comments: