🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #52434

Re: Microplanet Gravity -- multithreaded?

#52434
From: Jason Coleman
Date: Tue, 28 Sep 1999 00:00
41 lines
2743 bytes
In article <MPG.125ab01a183daecc98a136@news.mindspring.com>, 
brahms@mindspring.com says...
> jcoleman@siweb.com (Jason Coleman) wrote in news.software.readers:
> >Does anyone know if Gravity is a multi-threaded app?  It doesn't seem 
> >like it always behaves like one, and I can't remember ever having seen 
> >both my CPUs in use when performing multiple operations under Gravity.
> >Thanks!
> 
> Multithreaded doesn't mean what you seem to think. One CPU can run 
> multiple threads (and does, in Windows 9x/NT). The fact that only one CPU 
> is used does not tell you whether an application is multithreaded. I'd 
> lay large odds that Gravity is multithreaded, since it seems to be 
> comfortable doing multiple things at the "same" time.

No, I'm pretty sure it means what I think.  Thread load balancing under 
NT is the responsibility of the OS afaik, so if you have a multi-threaded 
app it should take advantage of multiple CPUs just by running it under NT 
as long as your threads aren't such that you get one thread waiting on 
another, in which case it doesn't help to be multithreaded.  I agree that 
while CPU use isn't the best indicator of multithreading, chances are if 
I try and start 2 high CPU utilization jobs from one applications and 
both CPUs peg, it's because it spawned a thread and that thread got 
shifted to the second CPU.

Anyway, I see what you are saying, you can write an application so that 
it is more "multiprocessor" aware, I.e. more efficient in a 
multiprocessor environment then not, but as far as threading is 
concerned, under NT generally speaking having a multi-threaded app should 
be sufficient to put multiple CPUs to use if multiple threads are 
spawned.

Your example of doing multiple things at the same time is not an 
indicator of multithreading either.  It may just have an execution order 
that it goes through which amounts to a application based, time-sliced 
mutli-task, but you can still do it under 1 thread.  

Anyway, see where I was coming from now?

-Jason

Technical Details
Message-ID: <MPG.125accf7efa7b5bb9896a7@nntp.msu.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <MPG.12594e658b9a86a99896a5@nntp.msu.edu> <MPG.125ab01a183daecc98a136@news.mindspring.com>

Show Full Headers
Complete Article Headers
Message-ID: <MPG.125accf7efa7b5bb9896a7@nntp.msu.edu>
Subject: Re: Microplanet Gravity -- multithreaded?
Date: Tue, 28 Sep 1999 00:00:00 +0000
From: jcoleman@siweb.com (Jason Coleman)
References: <MPG.12594e658b9a86a99896a5@nntp.msu.edu> <MPG.125ab01a183daecc98a136@news.mindspring.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 530380751
X-AUTHid: colema19
Organization: Strategic Interactive
Reply-To: jcoleman@siweb.com
Newsgroups: news.software.readers