thread1 : for (230000..397500,732500..900000){ #multiply } thread2: for (397500..732500){ #multiply } # it will run faster