multi-processing in performer

New Message Reply Date view Thread view Subject view Author view

Larry Ramey (ramey++at++ccpo.odu.edu)
Fri, 08 Oct 1999 13:52:44 -0400


Yasir, Don, anyone else who might know.....

Say I feel I need MORE than one asynchronous process. Say I want to fork
off a bunch of worker processes that are going to generate sub-trees
(who cares how right now).... I have a few questions:

1) Is this possible?
1a) What is the proper style for doing this. We have read all the man
pages and pguide stuff we can find... and it is a a bit too simple for
us to extrapolate what we want from it.

2) Our thought was to give each worker process a pfBuffer, and let our
dBase function merge these buffers.
2a) How would the dBase func know WHICH pfBuffer to merge?
2b) can I loop over the number of worker processes and merge each of
their buffers in turn? (Obviously I will need a shared registry of pids
and pfBuffers...no problem)

2c)can I call pfDBase() more than once per frame?
2d) Should I?
2e)Does one call to pfDbase clear ALL buffers, or only the active
buffer?

3)Is there secret black voodoo magic going on in the dBase process, or
could I just operate on the pfBuffer and call the merge right in the
worker process?
3a) If I operate on the pfBuffer and call pfMerge in the worker process
how does the AsynchDelete() happen?
3b) How does pfDBase "know" that this needs to be done?

4) what other hidden caveats are going to bite me in the posterior if I
do this???

-- 
---------------------------------------------------------------
Larry E. Ramey  ramey++at++ccpo.odu.edu 
757-683-3439 (CAVE)   757-683-5335 (VEL Lab)
"I eat weirder things than you in my cereal" - Zaphod Bebblebrox
"I know you know the movie song/
when you gonna realize, its just that the time was wrong" - Indigo Girls

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Fri Oct 08 1999 - 10:53:02 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.