Newsgroups: comp.parallel
From: kiando@cs.man.ac.uk (Ando Ki)
Subject: Re: lock vs. alock in parmacs
Organization: Dept of Computer Science, University of Manchester, U.K.
Date: 24 Feb 1995 15:51:07 GMT
Message-ID: <3ivv5u$dd4@usenet.srv.cis.pitt.edu>

In article <3iaflv$1rg@news.bu.edu>, ostr@miles.bu.edu (boris ostrovsky)
writes:
|> Could somebody explain me the difference between LOCK and ALOCK macros
|> in the PARMACS set from Argonne? Is it possible to use LOCK instead of
|> ALOCK? 

Hi,
You may be confused "pure PARMACS" and "SPLASH PARMACS".
"LOCK" is ordinary lock macro based on MONITOR.
"ALOCK" is array type of lock macro.
This means that if you want to create or use many lock
variables, then you shold create as many as you want
using "LOCKDEC" macro.
However, "ALOCK" macro gives a way to create an array of
lock. These array lock macros are very useful.
Unfortunately, if you want to use array lock macros,
such as, ALOCKDEC, ALOCKINIT, ALOCK, AULOCK, you have
to modify the "Monitor-Building Macros" because
there is no feature for array macro.

Have luck.

Ando Ki (kiando@cs.man.ac.uk)
24/Feb/95

P.S : Is there anyone who knows about PARMACS for KSR.

