Multi-threading sampling