473,397 Members | 2,028 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

little bit of confusion about thread.

dmjpro
2,476 2GB
if the parent thread terminates before child thread terminates then which thread ll be parent thread of the unterminated child thread????

plz help.

kind regards.
dmjpro.
May 22 '07 #1
5 1107
JosAH
11,448 Expert 8TB
if the parent thread terminates before child thread terminates then which thread ll be parent thread of the unterminated child thread????

plz help.

kind regards.
dmjpro.
What's a "parent" thread and what's a "child" thread? AFAIK Threads are
independent, threads of execution.

kind regards,

Jos
May 22 '07 #2
dmjpro
2,476 2GB
sorry i don't understand ur point of view plz.

i think a interesting thing hidden behind ur points.
plz help.

have a good day.

kind regards.
dmjpro.
May 23 '07 #3
JosAH
11,448 Expert 8TB
If thread A starts thread B only conceptually you could call A the parent thread
and B the child thread. Both threads are completely independent though. When A
stops, nothing special happens to B nor vice versa.

ThreadGroups are organised in a hierarchical structure but individual Threads
themselves can be constructed in any ThreadGroup you like.

kind regards,

Jos
May 23 '07 #4
dmjpro
2,476 2GB
ok a new thing i came to know thanks ....

about a new thing i m very much interested ... THREADGROUP
plz tell me about it .. what is it's utility???

plz help.

kind regards.
dmjpro.
May 23 '07 #5
JosAH
11,448 Expert 8TB
ok a new thing i came to know thanks ....

about a new thing i m very much interested ... THREADGROUP
plz tell me about it .. what is it's utility???

plz help.

kind regards.
dmjpro.
Read the API documentation for the ThreadGroup class and you'll know all
about it you ever wanted to know about this class.

kind regards,

Jos
May 23 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: Steve | last post by:
Hi, i know this is an old question (sorry) but its a different problem, i need to write a binary file as follows 00000011 00000000 00000000 00000101 00000000 11111111
8
by: Z D | last post by:
Hello, I'm having a strange problem that is probably due to my lack of understanding of how threading & COM Interop works in a WinForms.NET application. Here's the situation: I have a 3rd...
5
by: coollzh | last post by:
who can tell the detailed difference of: HttpRuntime, Context, HttpContext.Current sometimes, we can use Context Object instead of HttpContext.Current; sometimes, we can user HttpRuntime...
3
by: archana | last post by:
Hi all, I have one confusion regarding threading in windows service which is developed in c#. What i am doing is on 'onstart' event i am starting one thread. In thread procedure i am...
5
by: Cameron Laird | last post by:
Question: import subprocess, StringIO input = StringIO.StringIO("abcdefgh\nabc\n") # I don't know of a compact, evocative, and # cross-platform way to exhibit this behavior. # For now, depend...
10
by: =?Utf-8?B?UnVkeQ==?= | last post by:
Hello All! So I'm trying to figure out threading. I got the basic idea of how to start new threads, but getting a little lost with the form thing. I understand the that form runs a single...
5
dmjpro
by: dmjpro | last post by:
i know that the finalize method is called by JVM when an object is garbage collected. right??? but the ultimate memory release done by native OS. now my confusion is ... when it is called in...
18
by: miller.paul.w | last post by:
Ruby has a neat little convenience when writing loops where you don't care about the loop index: you just do n.times do { ... some code ... } where n is an integer representing how many times you...
6
by: George Sakkis | last post by:
I'm baffled with a situation that involves: 1) an instance of some class that defines __del__, 2) a thread which is created, started and referenced by that instance, and 3) a weakref proxy to the...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.