Re: phpthreads - hints anyone...
| From: | Shane Caraveo | Date: | Mon, 05 Aug 2002 17:33:59 +0000 |
| Subject: | Re: phpthreads - hints anyone... | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-86538@lists.php.net to get a copy of this message | ||
Andi Gutmans wrote:
At 11:36 PM 8/4/2002 +0200, Edin Kadribasic wrote:I would agree in terms of short-lived web apps, but when you start to delve into gtk or command line apps that are longer lived, threads can be extremely important. I use threads a lot, esp. for slow data gathering type of operations, or async operations. Anyway, I look at working on this more as a science project, satisfying my itch, etc. etc. ShaneI think this is voodoo and will be less straightforward to the end-userI'm thinking less about voodoo or magic, and more about what thenaturalapproach as a developer is. Treating a file as a thread, which while easier to implement, is not a normal method of initiating a thread, at least not with any language I've used. It may come down to the fact that doing threads by file is the only way to make it work well, but I think it's worth the investigation to see if a better way is doable.I don't think having threads by file would be that useful. If it is difficult to implement "real" threading in PHP we should IMHO leave it alone.I don't mind leaving it, because I'm not sure it's very important anyway, especially for the web. But why isn't thread per file useful? Usually the thread is a separate function which does its own thing and is quite self contained. Andi