🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.powerpc
Article #3611

CMT threads...was..Re: Debate: PowerMac "trounces" Pentium....???

#3611
From: Joseph Crowe
Date: Wed, 17 Apr 1996 18:16
43 lines
3428 bytes
nevin@CS.Arizona.EDU (Nevin ":-]" Liber) wrote:
>In article <adtDpntEF.Epw@netcom.com>, adt@netcom.com (Anthony D.
>Tribelli) wrote:
>
>> Which is why I believe CMT applications require extra care when written,
>> i.e. they are created (written) differently than a PMT application (the
>> contradiction to your earlier "no difference" statement). A threaded CMT
>> application needs a little more care to ensure that some interaction
>> between threads does not cause the app to hog the CPU. 
>
>And PMT threads have to do sychronization (semaphores, etc.) to make sure
>that shared data remains consistent, while CMT threads do not.  It's just
>a tradeoff.

   Worth noting, in your assertion there is no advantage to multi-threading a
CMT app because everything still becomes single-threaded.  However, if you
compare CMT to PMT threads in a multiprocessor environment, then both types of
threads will need a synchronization method if they expect to update common
data.  Thus, your assertion makes no sense.  Consider re-entrant coding with
multiple threads of execution but each thread with its own data(as in more
advanced OSs, threaded apps and such) and you should be able to see what
threads buys you.  In an application, threaded execution on multiple processors
of common or thread specific data will buy your app faster throughput, but, it
must be managed and that's true whether we use a PMT or a CMT scheme.  I do
have one question, have you ever programmed re-entrant, multi-threaded apps or
OS level code?  This stuff has been going on since the late 60s/early 70s so
the methodologies are well understood.  WRT using semaphores to regulate the
access/update of common data sets, most such facilities get rapidly embedded in
to OO class methods or into a series of macros in more primative environments,
pretty much the same as Apple app main event loops.  For my money, given all
the really cool, sophisticated tools available for the MacOS, I find
programming on the Mac more painful than any other environment I've played in.
To be fair, that may be somewhat of a function of familiarity but even C++
presents a litany of little gotchas in the MacOS environment.  I still intend
to stick it out because I like some of the other features and I like the Apple
HI pretty well.  I'd prefer a more robust OS but hopefully that will come with
Copland. 
>-- 
>        Nevin ":-)" Liber       nevin@CS.Arizona.EDU    (520) 293-2799

-- 
Joseph Crowe
jcrowe@isd.tandem.com
Technical Details
Message-ID: <4l3chu$lfd@news.mpd.tandem.com>
Path: arc1-ca.pugleaf.net!news.mpd!usenet
References: <4jj4mj$jnk@nntpb.cb.att.com> <danpop.828822597@rscernix> <3167FCAA.101@mts.se> <31680215.403E@mts.se> <4kdvbi$77c@dfw-ixnews4.ix.netcom.com> <adtDpLvI2.H3u@netcom.com> <dke-1004960729580001@adnline44.adnc.com> <adtDpntEF.Epw@netcom.com> <nevin-1104960029340001@192.12.69.5>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.mpd!usenet
From: Joseph Crowe <jcrowe@mpd.tandem.com>
Newsgroups: comp.sys.powerpc,comp.os.linux.advocacy,comp.sys.mac.advocacy,comp.os.os2.advocacy,comp.sys.amiga.advocacy,comp.sys.intel
Subject: CMT threads...was..Re: Debate: PowerMac "trounces" Pentium....???
Date: 17 Apr 1996 18:16:30 GMT
Organization: Tamdem Computers Inc.
Message-ID: <4l3chu$lfd@news.mpd.tandem.com>
References: <4jj4mj$jnk@nntpb.cb.att.com> <danpop.828822597@rscernix> <3167FCAA.101@mts.se> <31680215.403E@mts.se> <4kdvbi$77c@dfw-ixnews4.ix.netcom.com> <adtDpLvI2.H3u@netcom.com> <dke-1004960729580001@adnline44.adnc.com> <adtDpntEF.Epw@netcom.com> <nevin-1104960029340001@192.12.69.5>
NNTP-Posting-Host: kneehigh
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 1.1N (X11; I; IRIX 5.3 IP22)
X-URL: news:nevin-1104960029340001@192.12.69.5