i have a winForm app. The program.cs launches form1 and another thread sThread. I call a function from sThread on form1 that creates a new thread z . Which of the two(form1 and sThread) will z consider as 开发者_StackOverflow中文版parent ?
A thread doesn't have a parent. The notion is meaningless. The 'container' for threads is the process.
threads have no parent child hiererchy but processes do. so if process A "forks" a process "B" then A is parent of B meaning that A and B can share memory and communicate
精彩评论