Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
From: jbaker@scws7.harvard.edu (James Baker)
Subject: Re: RPC Continuation Passing
Date: 15 Feb 94 21:52:18	[thread overview]
Message-ID: <JBAKER.94Feb15215218@scws7.harvard.edu> (raw)
In-Reply-To: gregd@jaws's message of 14 Feb 94 21:14:54 GMT


In article <2958@dsinet> gregd@jaws (Gred Denton) writes:

   There was a recent question in the group concerning a process in the
   dual role of a client and server. What I would like to know is if a
   server could *completely* delegate its role as server to a third
   process. In other words, could process A make an RPC to process B
   which calls process C that actually does the return of A's RPC to B
   (and also returns B's RPC to it)? This would be a kind of
   "continuation passing" mechanism.

You can certainly do this.  (I have done it).  It is somewhat
inefficient if you pass pointers but definitely doable.  Probably what
you'd want to do to support this is to remap the entry point vector.

   I fear not, but I assume the passing of addresses is easily done:
   Process B could return A's RPC and then call process C with A's
   address and C could then call A (assuming A is an appropriate server).
   Is this assumption correct?

Yes you can do this too.  It's also much more efficient since you
don't have your process B gatewaying every single request.

One reason to choose either method is when you want a client serviced
by a process, not a thread, and you need a loader to fork off this new
server process.

-- Jim


  reply	other threads:[~1994-02-16  2:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-02-14 21:14 RPC Continuation Passing Gred Denton
1994-02-16  2:52 ` James Baker [this message]
1994-02-19 17:15 ` Eric W. Ziegenfus
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox