From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,4e43aa215794bade X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1993-05-06 09:57:56 PST Newsgroups: comp.unix.osf.misc Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!zaphod.mps.ohio-state.edu!sdd.hp.com!think.com!paperboy.osf.org!rsalz From: rsalz@osf.org (Rich Salz) Subject: Re: DCE and System calls Message-ID: <1993May6.163406.25425@osf.org> Sender: news@osf.org (USENET News System) Organization: Open Software Foundation References: <1993May6.130044.2492@decus.ch> Date: Thu, 6 May 1993 16:34:06 GMT 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$