I'v two threads.the main thread say thread A spawns the child Thread say
B.The first thread is provided with 100 ms of time to spwan and for the
child
thread iv given 50 ms..they are not independent threads..so if i suspend
my
parent thread "A" will it cause any problems to the child thread "B"?..
I don't really understand any of that. First of all, in Windows there's
not really a parent/child relationship between threads. When you create a
new thread, it belongs to the process. Things that affect the runnability
of any other thread, including the thread used to create a given thread,
do not affect any other given thread.
Secondly, I don't know what you mean by "the first thread is provided with
100ms of time to spawn", nor the similar comment with respect to the
"child thread". Provided how? What does this time mean exactly? How is
it controlled? Threads don't normally come with an expiration date, so to
speak, so saying that they are "provided with" some amount of time doesn't
seem meaningful without some additonal context (context you haven't
provided here).
Pete