When using .task modifer you are submit work to global concurrent Excutor, then it will submit job to coorperative pool which is a group of thread managed so it depends on coorperative pool to assign your job to a particular thread, therefore we can not exactly know which thread your code is running ( a special case is MainActor when we know that our code is run on Main Thread). Take a look at this excellent blog for more explain