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: Dave Butenhof Subject: Re: Threads under Digital OSF 4.0d Date: 1998/03/12 Message-ID: <3507FA3C.6A92645D@zko.dec.com>#1/1 X-Deja-AN: 333351410 Content-Transfer-Encoding: 7bit References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: Digital Equipment Corporation Newsgroups: comp.lang.ada,comp.unix.osf.osf1 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. > 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. 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. > 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! /---------------------------[ Dave Butenhof ]--------------------------\ | Digital Equipment Corporation butenhof@zko.dec.com | | 110 Spit Brook Rd ZKO2-3/Q18 http://members.aol.com/drbutenhof | | Nashua NH 03062-2698 http://www.awl.com/cseng/titles/0-201-63392-2/ | \-----------------[ Better Living Through Concurrency ]----------------/