A method, system, and computer program product to transfer data between
two application data structures by copying a data gather scatter program
(DGSP) from an exporting process address space where a first data
structure is located, to a location in shared memory visible to an
importing process address space; assembling a parameter set identifying
the data structure; starting a data gather scatter-redistribution machine
(DGS-RM) in an importing process space where a second application data
structure is located; passing the first parameter set, the DGSP copy, and
a second parameter set identifying a second application data structure
and a second DGSP to the DGS-RM; and creating master and worker stack
machines. The master stack machine identifies a contiguous chunk of the
first data structure. The worker stack machine identifies contiguous
chunks of the second data structure representing the same number of bytes
as the contiguous chunk of the first data structure and transferring to
(from) one or more identified chunks of the second data structure from
(to) the single chunk of the first application data structure.