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

Change-Id: Idd168a7dc44a031702570744adfff88ff7b5fa5c