* DCE and System calls
@ 1993-05-06 13:00 u_bornetun
1993-05-06 16:34 ` Rich Salz
0 siblings, 1 reply; 2+ messages in thread
From: u_bornetun @ 1993-05-06 13:00 UTC (permalink / raw)
Hi.
As part of an evaluation process I'm trying to write a couple of example
programs using DCE. I've run into problems using some system calls, especially
popen(), where subsequent reads always seem to return EOF.
My program is multi-threaded, but the whole function implementing
the service is protected with a mutex. My questions are
1. Are there any limitations to what one can do in a server function
with regard to systems programming an do these limitations still
exist even though I protect with mutexes?
2. Is it possible for a program to act both as a DCE client and as a
DCE server at the same time?
(Has nothing to do with q. 1, but is pretty important to us)
I haven't found anything on these issues in the literature, does anyone know?
/ulrika
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: DCE and System calls
1993-05-06 13:00 DCE and System calls u_bornetun
@ 1993-05-06 16:34 ` Rich Salz
0 siblings, 0 replies; 2+ messages in thread
From: Rich Salz @ 1993-05-06 16:34 UTC (permalink / raw)
In <1993May6.130044.2492@decus.ch> u_bornetun@decus.ch writes:
> 1. Are there any limitations to what one can do in a server function
> with regard to systems programming an do these limitations still
> exist even though I protect with mutexes?
It depends. DCE requires a pthreads implementation (draft 4 I think).
DCE source from OSF includes a user-level implementation of pthreads.
Depending on how thread-safe your vendor has made the C library, various
things will or will not work to various degrees. You will have to ask
your vendor about each particular problem. As a trick, try doing a select
on fileno(fp) where fp is that popen returned to you. Do this before you
read, and make sure the select call is in a C program file that includes
the threads wrapper macros.
> 2. Is it possible for a program to act both as a DCE client and as a
> DCE server at the same time?
Absolutely. If you think about it, when your server does things like
rpc_register_ep() it is making an RPC client call to rpcd.
/r$
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1993-05-06 16:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-05-06 13:00 DCE and System calls u_bornetun
1993-05-06 16:34 ` Rich Salz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox