Use NIntegrate In parallel?

The integrand I calculate is very complex and location-related. It takes a lot of time to go through a two dimensional region step by step using “while” loop structure, so how to use NIntegrate In parallel? I am a complete beginner in Mathematica.

parallelization.nb (4.11 KB)

Can’t help you unless you post your code, preferably using the Code Sample icon.

Would you please give me a hand? I’m not yet familiar with the software and language.

parallelization.nb (4.11 KB)

Maybe this helps.

Can you use inequalities to describe the region you want to integrate over? In that case, you could use NIntegrate just once

In[1]:= NIntegrate[
 Boole[Or[(x - 3)^2 + y^2 <= 1, (x + 3)^2 + y^2 <= 1]], {x, -100, 
  100}, {y, -100, 100}]

Out[1]= 6.28319

Thank you, I solved the problem.

parallelization1.nb (4.22 KB)

Thank you, I solved the problem.

parallelization1.nb (4.22 KB)