Basics for distributing to threads