mem will use two thread