in reply to Multi-kernel processors.
Yes, there is. But there is never a best way in all circumstances. It depends on what operating system you are on, how easy it is to spearate your task into parallel subtasks (and your data in "subdata"), how dynamic you want your processor power to be distributed and how much comfort you want.
But if I don't want to split hairs, I might answer: If you are on linux (or other unixoides, even Mac) you probably would use fork(), probably with the help of a module like Parallel::ForkManager. On Windows threads are commonly used for parallel tasks
|
|---|