From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,d4b23f20ce4830fb X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-08-21 16:45:19 PST Newsgroups: comp.unix.osf.osf1 Path: bga.com!news.sprintlink.net!mv!mv.mv.com!jonathan From: jonathan@mv.mv.com (Jonathan Eunice) Subject: Re: DECthreads Message-ID: Nntp-Posting-Host: mv.mv.com Sender: usenet@mv.mv.com (System Administrator) Organization: Illuminata Date: Sun, 21 Aug 1994 23:12:34 GMT References: X-Newsreader: TIN [version 1.2 PL2] Mark Wassell (mark@ncgrafix.demon.co.uk) wrote: : 1. What are peoples experiences in turning an existing single thread program : into a multithreaded one. How easy/difficult was it, what are the : pitfalls and what performance improvements are there. Our system is a : Cadcam system and as such does a lot of number crunching, a fair amount : of graphics IO and bursts of disk IO. Could the latter two be put : into their own threads? Difficulty can range from "not too bad" to "very hard." In general, expect "very hard." If it's less, you'll be plesantly surprised. If it's as hard as it often is--you are, after all, trying to add concurrency, a notoriously tricky optimization--you will be prepared. You might be able to separate out one or more crunching threads, one or more graphics I/O threads, and one or more disk I/O threads. How much good this will do depends. If the work can overlap, or if there are long I/O delays, threads can be a real boost. If there are many interdependencies, you're going to have to work harder to get any improvement at all. But saying how much you're likely to get would take far more info about your program layout than you've given. jse