From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,be90b72212c05a10,start X-Google-Attributes: gidf678f,public X-Google-Thread: 10b612,be90b72212c05a10,start X-Google-Attributes: gid10b612,public X-Google-ArrivalTime: 1993-02-25 18:44:41 PST Xref: sparky comp.unix.ultrix:10043 comp.unix.osf.misc:136 Path: sparky!uunet!ferkel.ucsb.edu!taco!gatech!howland.reston.ans.net!newsserver.jvnc.net!netnews.upenn.edu!rigel.rm.fccc.edu!orion.rm.fccc.edu!quillen From: quillen@orion.fccc.edu (John Quillen) Newsgroups: comp.unix.ultrix,comp.unix.osf.misc Subject: DECthreads & NCS/RPC Message-ID: <1mk06p$psi@rigel.fccc.edu> Date: 26 Feb 93 02:44:41 GMT Organization: Fox Chase Cancer Center, Philadelphia, PA NNTP-Posting-Host: relay.fccc.edu Apologies for posting this to the osf group, but I know there are people who read it that do threads. I'm trying to combine DECthreads and RPC (NCS) in an application to do distributed computing on a bunch of uni-processors (DEC 5000s w/Ultrix & (soon) alphas w/OSF/1). When the rpc call is made the current thread seems to wait for it. It doesn't yield, so I wind up with sequential distributed computing, rather than parallel. I've tried FIFO, RR & OTHER scheduling; controller at a higher priority than the worker threads and vice versa for all three. Nothing seems make the rpc thread yield to the controller thread. It seems rpc$sar() (in proj_cstub.c) blocks until it gets the results back from the remote host, and the thread isn't detecting this as a block. I can't see a way to insert a pthread_yield(), since I don't have (and don't really want) access to rpc$sar(). I'm probably going to try switching my threading algorithm around. I hope to soon have DCE and start using it. Maybe that'll give me more control? Thanks for any ideas, John -- John Quillen JW_Quillen@fccc.edu Phone: (215) 728-3660 FAX: (215) 728-2513 Research Computing Services / The Fox Chase Cancer Center / Phila. PA, USA Pop quiz: Define the Universe, give two examples.