[comp.parallel] Do I need locks?

randy@uokmax.ecn.uoknor.edu (Longshot) (06/02/90)

I am developing some curve-fitting software for a 2-d array (a surface). I
would like to use parallelism to solve several lines in parallel. If I
declare a block of shared memory A[num_vectors][vec_size], and I know for a
fact that no 2 processes will ever consider accessing the same vector, let
alone simultaneously, do I need to concern myself with semaphores and such?

Randy
-- 
Randy J. Ray       University of Oklahoma, Norman Campus	(405)/325-5370
!chinet!uokmax!randy	randy@uokmax.uucp    randy@uokmax.ecn.uoknor.edu
"He's not afraid of the judgement. He knows of horrors worse than your Hell."
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

eugene@wilbur.nas.nasa.gov (Eugene N. Miya) (06/04/90)

Do you need locks?
Do you need data consistency (and some determinism)?
If YES then
	locks = YES;
elseif (chaotic algorithm exists)
	locks = NO;
else
	lock = UNDEF;

--e. nobuo miya, NASA Ames Research Center, eugene@orville.nas.nasa.gov
  {uunet,mailrus,other gateways}!ames!eugene