Hello,
 I'm about 1 week past the reading of the php extensions section of the
manual and have been working on some ext stuff and had an
implementation type question. I did read the fairly recent thread on
threading support in php.Which I believe I grokked, however does php
being non-reentrant mean I can't use threading in an extension I write
for php? Let me give you an example of what I am trying to get at here.

Suppose I wanted to add and extension the creates a "service".
For example I wanted to create a "service" that pings a host 20 times
once every 10 minutes and saves the average ping time to a file. I also
want to be able to change aspects of this service while its running.
Like
the number of pings to use or the time between pings.I would also
want to be able to run multiple "copies" of this service that ping
different hosts.So I would obviously be exporting start and stop
functions for this "service". And possibly a single "control" function
that
supports changing all the aspects of the running service that I might
want to change.However, I am a little in the dark on what my options
are for spawning off a new process/thread that will continue working in
the background so the exported function can return in the script and go
on it's merry way. I'm hoping  a more experienced crowd might have
some suggestions for an implementation of this type. Any pointers to
more info, modules that do something similiar or suggestions would be
very welcome.

Eric Liedtke


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to