How to create some threads running tha same function