Python equivalent of R's mclapply()

The R package multicore has a function mclapply() which applies a specified function over a list of things and takes advantage of multiple cores. It's easy to use and results in big speed boosts.

Is there a Python equivalent? Thanks

Answers


This functionality is available from the map method in multiprocessing.Pool()

See this answer for more details: Is there a simple process-based parallel map for python?


Need Your Help

Java FileInputStream.open fails to open unix NFS shared file on Windows - inconsistently

java windows nfs fileinputstream

Has anyone ever seen an inconsistent FileInputStream.open Exception on Windows?