Dont know if this has been asked before :
I'm just beginning in parallel programming and have a baseline understanding of the concepts, but lack experience using it.
Here is the general layout of what I'm doing: I am doing an optimization problem where I'm running parallel monte carlo calculations which should produce N (the number of nodes) double precision numbers. I then need to pass all those to the master thread and determine the lowest one and then restart the whole process with the data produced with that thread until exit conditions are met. Can someone help me out with the psuedo code with particular emphasis on the !$OMP commands I need to use for this.