would like to get some information in nice manner way as i am bit confused about diffrence between those two guys. Is that true that first and second createinh completly separate thread or? What is the diffrence here. Please og nice explanation as there is lost information on network including ThreadPool, Thread, Tasks and so on i am bit lost which one should be used for which purposes.
First guy:
DataInThread = New Thread(New ThreadStart(Somemethod))
Second guy:
Dim t As Task = Task.Factory.StartNew(Function() Somemethod()
End Function)
Additional questions:
- Is that true that for first guy completely new brain thread will be created?
- Is that true that second guy - will be placed either to completely new brain thread or to the threadpool (means within same gui thread). And that's depends directly to Task StartNew to decide what to do. Does it correct understanding?