Comment on Tutorial - ThreadGroup Sample in Java By Mashoud



Comment Added by : pavan kurariya

Comment Added at : 2010-01-14 00:35:55

Comment on Tutorial : ThreadGroup Sample in Java By Mashoud
WHY You are using such huge code for suspending and resuming
.....appart from that we can just use
booean threadActivatedFlag = false;
while(){
initialize all thread..........
start the thread..
add in group...
}
........................
while(threadActivatedFlag )
{
if(threadGroup.activeCount()==0)
threadActivatedFlag = false;
else
Thread.sleep(4000);
}


View Tutorial



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. it is a good example to understand.
View Tutorial          By: nivedha at 2011-07-12 05:15:39

2. i would like to ask that what is the history of a
View Tutorial          By: Ankit at 2011-02-07 09:56:21

3. is there any port filter/block api for java?
View Tutorial          By: edwin at 2010-08-12 03:16:44

4. ans to 23:
by using gdb(GNU deb

View Tutorial          By: Bhargav at 2011-11-02 13:23:51

5. Wed Sep 23 20:38:16 IST 2009:Sender:*** time out a
View Tutorial          By: charan at 2009-09-23 09:13:22

6. its nice example for beginers
View Tutorial          By: Ramesh at 2012-02-15 18:13:09

7. very cool you said it! many thanks it's really coo
View Tutorial          By: ArAsh at 2008-12-11 06:41:13

8. Hi Nithya,
yes you can do that see the tut

View Tutorial          By: Ramlak at 2009-03-04 01:20:01

9. really great, goes more in depth than cplusplus.co
View Tutorial          By: ss80 at 2008-07-02 06:45:47

10. good
View Tutorial          By: thamim at 2012-09-01 03:22:26