Each process multiply by line using shared memory