Is there a way to identify the current process?
UnixJunkie opened this issue · comments
For example, do we have an integer that can be read that says
"you were the first worker process the master created by fork" (that would be 0 probably).
Also, I might need the total number of working processes to be accessible by a worker.
In MPI there is such thing (though I don't remember how they are called).
I would need this in order to read a file in parallel during a Parmap.pariter.
Reading a file in parallel will put more work in the parallel section of my program so will
increase the scalability.
related to #54
related to #56
I have tested both pull requests and they behave as I expected.
Having both functionalities together will allow me to use parmap in interesting ways. :)
With those modifications, I am able to read a file in parallel using parmap.
If you are OK with your tests, we could make a new release.
Just ping me if you want me to update the opam package.
If a new tag is issued and pushed, then I can update the opam package and this issue can be closed.
OK, I update the opam package right now.