Add multi thread support for A/B generator am: 98e0fb7799
am: b249477d58

Change-Id: I123b16846ce2880b626655d38d18f21deb844c60