AW: [PEAR-DEV] Package Proposal: PHP::Forking_Thread

From: Date: Fri, 24 Oct 2003 12:32:09 +0000
Subject: AW: [PEAR-DEV] Package Proposal: PHP::Forking_Thread
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-22968@lists.php.net to get a copy of this message
Hi, Vote : +1 Review : Reviewed the code and examples account : schst The only problem I see is the naming, as you are forking processes and don't do threading in one process... Stephan --- Stephan Schmidt schst@php-tools.net http://www.php-tools.net > -----Ursprüngliche Nachricht----- > Von: luca.mariano@email.it [mailto:luca.mariano@email.it] > Gesendet: Freitag, 24. Oktober 2003 14:19 > An: pear-dev > Betreff: [PEAR-DEV] Package Proposal: PHP::Forking_Thread > > > Hi all, > just a repost of my package "Thread". I've given a little > polish to code, some other comments and over all some good > usage example; the use of this class is not much intuitive, > so examples are a must... > > I'm thinking about renaming the package into > PHP::Forking_Thread, so it should be clever than no real > threading is done, but only an emulation thru the forking system call. > > Some links to the latest code snapshots: > http://www.lucamariano.it/packages/threadClass.phps (the class) > http://www.lucamariano.it/packages/basic.phps (basic example, > I use this as a regression test...) > http://www.lucamariano.it/packages/passing_vars.phps (sharing > variables between threads) > http://www.lucamariano.it/packages/exec_methods.phps (launch > methods over the threads and return results to parent) > > > However I still use this class for some of my customers, I've > implemented a NNTP binary grabber as backend for a big usenet > provider; this application make use of threadClass.php, scan > about 200 binary newsgroups, search them for images, download > and categorize them. All using a standalone PHP server > running 8-10 parallel "Threads". This provider was previously > using a Win32 app (NewsBin) under wine; my PHP server uses > 1/10 of system resources, runs faster and ensure reliability > to the back-end (and so to the website). > I think too much PHP developers only use the web SAPI, while > the CLI is an excellent programming environment; by using > this class, parallel execution server can be easily written in PHP. > > Luca Mariano > > > Ing. Luca Mariano > ---------------------------------------- > - email: luca.mariano@email.it > - cell: 347/56.03.614 > - web: http://lucamariano.f2g.net > ---------------------------------------- > > > > -- > Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Il pacchetto grandi storici - 18 volumi , gli scrittori latini e greci Sconto del 55% sul prezzo di mercato. Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=1907&d=24-10 -- PEAR Development Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.pear.dev (#22968) next »