Added parallel processing only for Linux and Mac OS

the code is disabled for the Win version