Re: [PHP-DEV] Multithreading

2005-12-08 Thread Andrei Zmievski
It must be Christmas time. - A On Dec 7, 2005, at 7:17 PM, Wez Furlong wrote: pecl/event is available for download... ;-) --Wez. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Multithreading

2005-12-08 Thread Bart de Boer
> I really do not see the point is worrying all too much about multi > threading in PHP. Writing proper multi threaded code is hard and why > bother? Your server is going to be busy doing tons of other things at > the same time. So all your CPU's and cores should have plenty of things > to do. Also

Re: [PHP-DEV] Multithreading

2005-12-08 Thread Lukas Smith
Hi, I really do not see the point is worrying all too much about multi threading in PHP. Writing proper multi threaded code is hard and why bother? Your server is going to be busy doing tons of other things at the same time. So all your CPU's and cores should have plenty of things to do. Also

Re: [PHP-DEV] Multithreading

2005-12-08 Thread Bart de Boer
Thank you all, for the feedback. Some solutions are new to me. So, I'll be taking a deeper look into those options. I have to say that they all still sound a bit like work-arounds. (Although this could very well be due to my unworthy knowledge. ;) ) I still think it would be nice if there woul

Re: [PHP-DEV] Multithreading

2005-12-08 Thread Bart de Boer
fork() works on windows as well, but on Win32 forking is MUCH slower then threads. Ilia With fork() you mean using exec() to call php with another script, right? Because I can't seem to find the fork() function anywhere. :| -- PHP Internals - PHP Runtime Development Mailing List To unsubscri

Re: [PHP-DEV] Multithreading

2005-12-07 Thread Lester Caine
Rasmus Lerdorf wrote: php should defenatly in the future support multi-threading especially if they want to prove you can do desktop apps with php and not just web apps ;) Which is not something we have ever stated to be a goal. May be not, but when has that stopped people doing things ;) E

Re: [PHP-DEV] Multithreading

2005-12-07 Thread Wez Furlong
pecl/event is available for download... ;-) --Wez. On 12/7/05, Andrei Zmievski <[EMAIL PROTECTED]> wrote: > Exactly. Something based on libevent would be nice. > > -Andrei > > > On Dec 7, 2005, at 4:49 PM, Rasmus Lerdorf wrote: > > > > > > There are no plans for this. Asynchronous mechanisms are

RE: [PHP-DEV] Multithreading

2005-12-07 Thread J. Allen Dove
the async handling right it easily scales by simply adding more processors/hardware as load demands. Just a FWIW... -Original Message- From: Ilia Alshanetsky [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 07, 2005 5:55 PM To: Bart de Boer; internals@lists.php.net Subject: Re: [PHP-

Re: [PHP-DEV] Multithreading

2005-12-07 Thread Andrei Zmievski
Exactly. Something based on libevent would be nice. -Andrei On Dec 7, 2005, at 4:49 PM, Rasmus Lerdorf wrote: There are no plans for this. Asynchronous mechanisms are generally a much more efficient way to do this stuff. -Rasmus -- PHP Internals - PHP Runtime Development Mailing List

Re: [PHP-DEV] Multithreading

2005-12-07 Thread Ilia Alshanetsky
Bart de Boer wrote: > Ilia Alshanetsky wrote: > >> You don't need threads, you can use fork() for that. On *nix systems it >> is very fast, nearly as fast as threads and much safer to boot. And you >> can already do forking in PHP via PCNTL extension's pcntl_fork() >> function. >> >> Ilia > > >

Re: [PHP-DEV] Multithreading

2005-12-07 Thread Rasmus Lerdorf
Joseph Crawford wrote: php should defenatly in the future support multi-threading especially if they want to prove you can do desktop apps with php and not just web apps ;) Which is not something we have ever stated to be a goal. -Rasmus -- PHP Internals - PHP Runtime Development Mailing List

Re: [PHP-DEV] Multithreading

2005-12-07 Thread Joseph Crawford
php should defenatly in the future support multi-threading especially if they want to prove you can do desktop apps with php and not just web apps ;) -- Joseph Crawford Jr. Zend Certified Engineer Codebowl Solutions, Inc. 1-802-671-2021 [EMAIL PROTECTED]

Re: [PHP-DEV] Multithreading

2005-12-07 Thread Wez Furlong
Try proc_open(). --Wez. On 12/7/05, Bart de Boer <[EMAIL PROTECTED]> wrote: > Ilia Alshanetsky wrote: > > You don't need threads, you can use fork() for that. On *nix systems it > > is very fast, nearly as fast as threads and much safer to boot. And you > > can already do forking in PHP via PCNTL

Re: [PHP-DEV] Multithreading

2005-12-07 Thread Bart de Boer
Ilia Alshanetsky wrote: You don't need threads, you can use fork() for that. On *nix systems it is very fast, nearly as fast as threads and much safer to boot. And you can already do forking in PHP via PCNTL extension's pcntl_fork() function. Ilia That sounds sufficient enough. Although I gues

Re: [PHP-DEV] Multithreading

2005-12-07 Thread Bart de Boer
Rasmus Lerdorf wrote: Bart de Boer wrote: Are there any future (or current) plans for multithreading in PHP? There are no plans for this. Asynchronous mechanisms are generally a much more efficient way to do this stuff. -Rasmus With asynchronous I'm asuming you mean mechanisms where you

Re: [PHP-DEV] Multithreading

2005-12-07 Thread Ilia Alshanetsky
You don't need threads, you can use fork() for that. On *nix systems it is very fast, nearly as fast as threads and much safer to boot. And you can already do forking in PHP via PCNTL extension's pcntl_fork() function. Ilia -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe,

Re: [PHP-DEV] Multithreading

2005-12-07 Thread Rasmus Lerdorf
Bart de Boer wrote: Dear PHP creators, I was wondering. (And I'm probably the 1000th person asking this.) With all the multiple-core processors and servers popping up lately, are there any future (or current) plans for multithreading in PHP? It's not unlikely to have a PHP script that, for e