Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
From: mauney@adm.csc.ncsu.edu (Jon Mauney)
Subject: Re: DCE Questions.
Date: Tue, 1 Feb 1994 12:45:28 GMT	[thread overview]
Message-ID: <mauney.760106728@adm> (raw)
In-Reply-To: 2ijd6k$69t@news.tamu.edu

muppidi@cs.tamu.edu (Shridhar R Muppidi) writes:

>Hello,
>  I have a few questions related to DCE RPC - would appreciate
>if anybody could take some time and answer them. I'll post a
>summary once I get all the answers.

>1. Is it possible in DCE RPC to have one piece of code
>   act as both server and client? 

Yes.  By "the same piece" I assume you mean the same process.
The code, of course, must be written correctly.  But it is
quite easy, for example, for the server side of an RPC to turn
around and make an RPC to another server.

>2. Is it possible to have same server code running on
>   different processors/hosts? A perfect example is a 
>   parallel machine. Lets say that a client requires 
>   service and contacts the CDS and gets the address of 
>   the host providing the service. Now a different client
>   needs the same service - is it possible to provide the
>   same service on a different processor/host. If 'yes' how
>   does the CDS know about it and direct the new client to the
>   new host?

Yes.  Two points:
  You can have multiple servers all providing the same service,
  on different hosts.  The CDS will have all of them in its
  database.  Queries to the CDS should be viewed as producing 
  a list of possible servers, from which the client chooses one
  based on its own criteria.  Clients that use the auto_handle
  method of binding will choose a server "at random" and be
  evenly distributed among the servers.

  If you have a multi-processor host, you will normally have
  only one server process (for a particular interface).
  Servers are multi-threaded by default, so the second request
  would simply be handled by a different thread.  Of course,
  you must write your server to be thread-safe.

-- 
Jon Mauney 			 mauney@csc.ncsu.edu
Mauney Computer Consulting	 (919) 828-8053

	"Have TGT, will travel"


  parent reply	other threads:[~1994-02-01 12:45 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-01-31 16:55 DCE Questions Shridhar R Muppidi
1994-02-01  9:42 ` Bernd Dreier
1994-02-01 12:45 ` Jon Mauney [this message]
1994-02-01 18:13   ` Ted W. Larson
     [not found]     ` <2itvfm$77t@ftn.ftn.us-ny.citicorp.com>
1994-02-06 12:33       ` Manfred Scheible
1994-02-03 21:46 ` Reilly F. Hayes
1994-02-09 16:23   ` Jamison H Abbott
1994-02-10 17:41     ` Seiichi Tatsukawa
1994-02-08 17:04 ` Rich Salz
  -- strict thread matches above, loose matches on Subject: below --
1994-10-21  5:22 Carl Hoang
1994-10-24 22:42 ` Gerry Palo
1994-10-26  0:18   ` Dr. James W. Hong
1994-01-20 13:32 Jaqui Lynch
1994-01-21 13:53 ` Mark Hickey
1994-01-21 14:23 ` Craig Weeks
1994-01-21 19:12 ` Wanda Monroe
1993-08-12 15:25 DCE questions Per Igel
1993-08-12 19:47 ` Rich Salz
1993-08-13 15:01 ` Greg Brail
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