es3 sync with limited number of threads