Re: [PHP] Re: Multithreading for OOP PHP

2012-11-03 Thread Dotan Cohen
> As far as php side goes, it's a > problem of design of the apps. Just because people decided to go through > hoops to use the threaded model doesn't mean that it is any faster than > writing to the same thing in event driven model, event driven way is > sometimes much faster than threads. I'm on

Re: [PHP] Re: Multithreading for OOP PHP

2012-11-03 Thread Alex Nikitin
Threading doesn't increase complexity? Spoken truly like somebody who has not had to actually write, test and debug proper, high performance threaded code. Please tell me how threading doesn't increase complexity of any data structure? I may agree if you talk about php running in cli, but then the

Re: [PHP] Re: Multithreading for OOP PHP

2012-11-03 Thread Joe Watkins
On 31/10/2012 13:46, Alex Nikitin wrote: Hey guys (and/or gals), I have heard this question entirely too many times, I think at some point Rasmus just stopped responding to it. The real reason that PHP is not threaded has nothing to do with PHP internal or extension thread safety, the reason is

Re: [PHP] Re: Multithreading for OOP PHP

2012-10-31 Thread Alex Nikitin
You do all that in the context of a single PHP instance and linear code, calling curl_multi handles its own threading, you just get back results, you dont have to store it anywhere outside PHP memory space, and you can configure timeouts and all that stuff, or you can regulate it yourself. The data

Re: [PHP] Re: Multithreading for OOP PHP

2012-10-31 Thread Tommy Pham
On Wed, Oct 31, 2012 at 9:27 AM, Alex Nikitin wrote: >> >> That's all understood but there are times when that one request from >> the visitor requires many sub-requests like connection to DB and >> making SOAP calls. > > > I would say it's more than just "there are times", that's how a typical >

Re: [PHP] Re: Multithreading for OOP PHP

2012-10-31 Thread Alex Nikitin
> > > That's all understood but there are times when that one request from > the visitor requires many sub-requests like connection to DB and > making SOAP calls. I would say it's more than just "there are times", that's how a typical script lives, it imports libraries, queries the database, and

Re: [PHP] Re: Multithreading for OOP PHP

2012-10-31 Thread Tommy Pham
On Wed, Oct 31, 2012 at 6:46 AM, Alex Nikitin wrote: > Hey guys (and/or gals), > > I have heard this question entirely too many times, I think at some point > Rasmus just stopped responding to it. The real reason that PHP is not > threaded has nothing to do with PHP internal or extension thread sa

Re: [PHP] Re: Multithreading for OOP PHP

2012-10-31 Thread Alex Nikitin
Hey guys (and/or gals), I have heard this question entirely too many times, I think at some point Rasmus just stopped responding to it. The real reason that PHP is not threaded has nothing to do with PHP internal or extension thread safety, the reason is more to the extent that it doesn't make sen

[PHP] Re: Multithreading for OOP PHP

2012-10-31 Thread Alessandro Pellizzari
Il Wed, 31 Oct 2012 11:50:00 +0100, ma...@behnke.biz ha scritto: > The drawback of forking is the memory overhead. With every fork you take > the same amount of memory which is not the case if you could use real > threads. No, it is not. Forking in Linux uses COW (copy-on-write), so a freshly-for

[PHP] Re: Multithreading for OOP PHP

2012-10-31 Thread Alessandro Pellizzari
Il Wed, 31 Oct 2012 11:57:11 +0100, ma...@behnke.biz ha scritto: > But it if PHP would be threadsafe, you would be able to run the Apache > in a much faster and less memory using way. > There once was a configure option in PHP to compile it threadsafe, but > they dropped it for a reason. Because

Re: [PHP] Re: Multithreading in PHP

2009-03-23 Thread Manuel Lemos
Hello, on 03/23/2009 10:05 AM Igor Escobar said the following: > Great Project, Lemos. Thanks? > When you are thinking in show more exemples? Who? Me or Andrea? -- Regards, Manuel Lemos Find and post PHP jobs http://www.phpclasses.org/jobs/ PHP Classes - Free ready to use OOP components wr

Re: [PHP] Re: Multithreading in PHP

2009-03-23 Thread Igor Escobar
Great Project, Lemos. When you are thinking in show more exemples? Regards, Igor Escobar systems analyst & interface designer www . igorescobar . com On Fri, Mar 20, 2009 at 3:04 AM, Manuel Lemos wrote: > > Hello Andrea, > > on 03/18/2009 06:07 AM Andrea Giammarchi said the following: > > If

Re: [PHP] Re: Multithreading in PHP

2009-03-19 Thread Manuel Lemos
Hello Andrea, on 03/18/2009 06:07 AM Andrea Giammarchi said the following: > If anybody interested, this is my "old" comet implementation in PHP: > http://webreflection.blogspot.com/2008/04/phomet-changes-name-so-welcome-phico.html Great! Any live examples page? > P.S. Hi Manuel, ages I do not

RE: [PHP] Re: Multithreading in PHP

2009-03-18 Thread Andrea Giammarchi
-0300 > From: mle...@acm.org > To: manojsingh2...@gmail.com > CC: php-general@lists.php.net > Subject: [PHP] Re: Multithreading in PHP > > Hello, > > on 03/17/2009 10:14 AM Manoj Singh said the following: > > I am creating a page which submits the form through Ajax

[PHP] Re: Multithreading in PHP

2009-03-17 Thread Manuel Lemos
Hello, on 03/17/2009 10:14 AM Manoj Singh said the following: > I am creating a page which submits the form through Ajax request & the > submitted page is sending the mails to n number of users. Now until the mail > sends or the page process completed the end user has to wait. > > Is it possible

[PHP] Re: multithreading

2002-05-15 Thread Julio Nobrega Trabalhando
This might help you: http://www.faqts.com/knowledge_base/view.phtml/aid/1982/fid/58 I've also seen before an actual php script that interacts with a C program to do the same. Google for it and it will be esay to find. -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/t