Parallel version of cn.mops' bamDataRanges
This is an option for the function documented in its help page. Just run ?bamDataRanges and you will see:

Usage:

     getReadCountsFromBAM(BAMFiles, sampleNames, refSeqNames, WL = 25000,
       parallel = 0, ...)

[...]

parallel: The number of parallel processes to be used for this
          function. Default=0.


So all you need to run with 10 cores is:

bamDataRanges &lt;- getReadCountsFromBAM(BAMFiles, parallel=10)