From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,fea05b9ed45ffc85 X-Google-Attributes: gid103376,public X-Google-Thread: fee84,fea05b9ed45ffc85 X-Google-Attributes: gidfee84,public From: Jeff Denham Subject: Re: Threads under Digital OSF 4.0d Date: 1998/03/17 Message-ID: <350ED209.9B44F5D2@brighttiger.com>#1/1 X-Deja-AN: 335021672 Content-Transfer-Encoding: 8bit References: <3507FA3C.6A92645D@zko.dec.com> <350E8A67.4EB0@gsfc.nasa.gov> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Organization: Bright Tiger Technologies Newsgroups: comp.lang.ada,comp.unix.osf.osf1 Stephen Leake wrote: > Rob Kirkbride wrote (in small part: > > The problem is you don't seem to > > be able to use realtime priorities any more from Ada as it assumes > > process scope when creating the threads which is a little annoying to > > have this changed on us. I realise in C you can change this option. > > If you can change it in C, you can change it in Ada; just import the > routine and call it! If you have to call it before the Ada environment > task is created, then you'll have to write a main wrapper in C that > calls the Ada elaboration and finalization code. Either way, it should > be doable. > > -- > - Stephe Just a reminder -- in Digital UNIX 4.0-4.0C, all pthreads are process-scope threads. The only exception is for programs linked statically on pre-V4.0 versions of the OS. Only in V4.0D was system-contention scope (re)introduced. So, for a system scope (bound) thread, the priority/policy changes will again affect the thread's systemwide scheduling behavior. If you're not doing realtime, you should stick with process-scope threads (right, Dave?). Jeff __________________________________________________ Jeff Denham (jdenham@brighttiger.com) Bright Tiger Technologies SmartCluster� Software for Distributed Web Servers http://www.brighttiger.com 125 Nagog Park Acton, MA 01720 Phone: (978) 263-5455 x177 Fax: (978) 263-5547