From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,fea05b9ed45ffc85 X-Google-Attributes: gid103376,public X-Google-Thread: fee84,fea05b9ed45ffc85 X-Google-Attributes: gidfee84,public From: Rob Kirkbride Subject: Re: Threads under Digital OSF 4.0d Date: 1998/03/12 Message-ID: #1/1 X-Deja-AN: 333453420 Distribution: world X-NNTP-Posting-Host: rk-comp.demon.co.uk [194.222.52.8] References: <3507FA3C.6A92645D@zko.dec.com> MIME-Version: 1.0 Newsgroups: comp.lang.ada,comp.unix.osf.osf1 In article <3507FA3C.6A92645D@zko.dec.com>, Dave Butenhof writes >Rob Kirkbride wrote: > >> We have recently upgraded the operating system from 3.2g to 4.0d and are >> experiencing what I can only describe as 'funnies'. This was done as >> 3.2g was not fully Y2K complient. >> >> The software written in Ada creates nearly 500 threads and it ran pretty >> reliably on 3.2g. On 4.0d things don't seem to be happening quite as >> expected (and as they did). Structures seem to be getting corrupted >> every now and again. I haven't proven it isn't our software yet but I'm >> getting close. > >The corruption is most likely an application or ada bug, rather than a bug >in the thread library. It's impossible to even offer an informed guess on >the basis of your information, but, historically, this is true of nearly >all data corruptors. I've virtually proved its due to the 'new' context switching within the threads library rather than the kernel. > >> ps does not now show all the threads (about 50 when we create nearly >> 500). I also don't think it's using our priorities any more. We've >> registered this with DEC but they haven't got back to us yet. > >Yes, ps does show "all the threads", by its definition. It's just that ps >only knows about kernel threads, and that's different from application >threads. And ps won't know about your application thread priorities because >they (by default) have nothing to do with the kernel. I suggest you read >the release notes, and especially appendix A (especially A.3) of the 4.0D >Guide to DECthreads, for more information. Yeah we've just worked that out today. 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. > >ps is not an application debugging tool -- it's a system display tool. When >you want to get into your application and see what's happening, use >ladebug, or another thread-aware debugger such as TotalView. decladebug seems to have got more buggy with 4.0d > >> Has anyone else had any experience with it, good or otherwise running C >> or Ada with pthreads? > >Yes. Lots of them. Most are good. That, of course, does not mean there >aren't any problems; but to have any hope of identifying (much less >correcting) any problems there might be, we need quite a bit more >information than this! We have submitted more information on a proper call but I am interested to see if other people are suffering from the same problem, which judging by my email response - they are! -- Rob Kirkbride