limit priority/threads for Gradle/Android Studio builds?
It seems like a known issue, there's an ongoing debate about this upstream: https://code.google.com/p/android/issues/detail?id=66696
They say the build should use a shared thread pool, the parameter to set its size is -Pandroid.threadPoolSize=<count>
and should be available in Android Studio 2.3 beta 3.