From: jmasino@gtpitch.gsfc.nasa.gov (Jay Masino)
Subject: Re: Parallel Processing -- FAQ?
Date: 9 Feb 1995 19:03:11 GMT [thread overview]
Message-ID: <3hdotf$dlc@post.gsfc.nasa.gov> (raw)
In-Reply-To: 3hdghs$1hn@news.cs.tulane.edu
Dr. Andrew E. Pollard (pollard@tatanka.bmen.tulane.edu) wrote:
: Hello:
: We have a dual processor Alpha, but I can't figure out how to:
: 1. determine the processor I'm running my job on
: 2. compile a FORTRAN code to run across both processors
: I looked for the FAQ for this newgroup because I thought I might
: find this information in that source, but I could not find the FAQ.
: Could someone point me to the right places in either the bookreader or
: the man pages for parallel prosessing?
: Thanks in advance ... Andy Pollard
In order to get a program to take advantage of your 2 CPUs, you'll have to
use "threads". This is a way to create different threads of execution that
can be scheduled on the different CPUs. This is sort-of like forking separate
processes from within your code, but these "threads" are all under the same
PID. If you don't break your code into multiple threads, you'll always
run on a single CPU. In fact, OSF/1's scheduler schedules threads, not
processes. Look up "pthreads" (Posix threads) in the man pages or bookreader.
--- Jay
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
_/ Jay Masino '67 Piper Cherokee, N4269J _/
_/ Loral AeroSys at CSC/GreenTec IV Fly Hershey Bar Pipers! _/
_/ Office:(301)794-2595 FAX:(301)794-7208 __!__ _/
_/ E-mail: Jay.Masino@gsfc.nasa.gov _____(_)_____ _/
_/ jmasino@gtpitch.gsfc.nasa.gov ! ! ! _/
_/ _/
_/ #include <std_disclaimer.h> /* My opinions are not NASA's */ _/
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
next prev parent reply other threads:[~1995-02-09 19:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-02-09 16:40 Parallel Processing -- FAQ? Dr. Andrew E. Pollard
1995-02-09 19:03 ` Jay Masino [this message]
1995-02-10 18:16 ` Steve Lionel
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox