From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 115614,7eb0575470192e20,start X-Google-Attributes: gid115614,public X-Google-Thread: fee84,7eb0575470192e20,start X-Google-Attributes: gidfee84,public X-Google-Thread: 11035d,7eb0575470192e20,start X-Google-Attributes: gid11035d,public X-Google-Thread: ffc1e,7eb0575470192e20,start X-Google-Attributes: gidffc1e,public From: lo tek Subject: Understanding threads in Unix Date: 1998/09/27 Message-ID: <360F04C1.ECAD5E9@iname.com>#1/1 X-Deja-AN: 395494066 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii X-Trace: news.cwix.com 906953831 166.55.244.76 (Mon, 28 Sep 1998 03:37:11 GMT) Organization: CWIX MIME-Version: 1.0 NNTP-Posting-Date: Mon, 28 Sep 1998 03:37:11 GMT Newsgroups: comp.unix.aix,comp.unix.solaris,comp.unix.osf.osf1,comp.programming.threads I was a Windows NT programmer before becoming web master and (kind of) a Unix admin. I have begun to evaluate upgrading our DEC Unix platform to either AIX or Solaris. (Why get rid of DEC - concern about its future due to Compaq's ties to microsoft, availability of off-the-shelf software, et al) Anyway, I've heard that some Unix OSes don't have threads. I have a Linux workstation, and I believe Linux has threads. Is this a System V versus OSF thing? >>From what I understand on NT, a new thread is different from a new process in that a new thread gets its own stack but not its own heap. This means it's faster to initialize a new thread instead of a new process. The advantage is that, for example, a web server only uses new threads to handle each request, instead of "blocking" requests and using new processes. How do AIX and Solaris compare in this regard? If neither has threads, or neither has many apps that use threads, is this a performance problem? Certainly I'm not suggesting NT would outperform. :) If both have threads, which is more stable? Also, if an OS doesn't have threads, an app may wish to emulate a threaded environment, forcing each vendor to recreate threading which is probably not trivial, and therefore error-prone. tia, lo tek ps - if you could, when you reply to the newsgroup, please send a copy to lotek@iname.com