Newsgroups: comp.parallel.pvm
Path: ukc!uknet!pipex!howland.reston.ans.net!darwin.sura.net!rouge!pxu8785
From: pxu8785@ucs.usl.edu (Uthayopas Putchong)
Subject: Re: Use of common data between spawned tasks
Message-ID: <1994Feb19.153322.14727@usl.edu>
Sender: anon@usl.edu (Anonymous NNTP Posting)
Organization: Univ. of Southwestern La., Lafayette
References: <14991@m1.cs.man.ac.uk>
Date: Sat, 19 Feb 1994 15:33:22 GMT
Lines: 29

In article <14991@m1.cs.man.ac.uk> lb@cs.man.ac.uk (Luben Boyanov) writes:
>
>Now I'd like to ask if it is possible to share (read from and write in)
>common data structures between tasks spawned by on parent and running on
>the same host.  I've tried passing pointers with argv but couldn't succeed.
>I can't afford passing data between different tasks and it is no good if
>they all work on their own copies.  At the same time, different tasks
>working on the same set of data is OK (parallelising) my problem (circuit
>simulation) .
>
>Thanks in advance for any help,
>
>Luben
>
>
>

If the tasks are spawned on the same hosts you can use the unix share
memory to pass the data around. My idea is that you can have the master
task construct a key (string or integer), allocate share memory block
using unix system calli with that key, pass the key to all subtasks using
the argument argv in pvm_spawn. Then subtasks can have an access to
the share memory.The problem is that you have to make sure all tasks 
are in the same system.

Any suggestions is welcome.

Putchong U.


