Thank you for your time and the detailed explanation 🙂, now i understand and it works across many physical cores.
Because i have to write data into a single file the lines are now mixed up, i think i need channels (?) to solve this, i will read how that works try it out and ask again if i have problems :)