How to do simplest multithreading task operation

for one sure there are more