[m-rev.] for review: deep profiler redesign
Fergus Henderson
fjh at cs.mu.OZ.AU
Mon Nov 11 17:41:48 AEDT 2002
On 11-Nov-2002, Zoltan Somogyi <zs at cs.mu.OZ.AU> wrote:
> The following is a high level description of mdprof_cgi in pseudocode:
>
> create "want" file
> get mutual exclusion (i.e. create mutex file)
> if the named pipes exist
> commit to being a client
> send the query to the server through the toserver pipe
> release mutual exclusion (i.e. delete mutex file)
> receive the result from the server through the fromserver pipe
> remove "want" file
> else
> read the profile data file and preprocess it
> if the reading and preprocessing found any errors
> report the error
> release mutual exclusion (i.e. delete mutex file)
> remove "want" file
> else
> report the result of the initial query
> commit to being a server
> create the named pipes
> release mutual exclusion (i.e. delete mutex file)
> remove "want" file
> loop forever
> setup timeout
> receive query on toserver pipe
> send result to fromserver pipe
> done
> fi
> fi
I think the pseudocode should say what happens if the timeout fails,
and when the "want" file(s) get read.
Otherwise that looks fine.
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-reviews mailing list
post: mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the reviews
mailing list