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. its cool, you've cleared me.
View Tutorial          By: zealous at 2013-09-10 17:40:26

2. Sir. Please give an example which is small and und
View Tutorial          By: Rafik at 2011-08-17 19:45:04

3. a pretty good site for learners
View Tutorial          By: chaitra at 2011-12-15 10:09:14

4. what is self-executing program ? or dynamic data
View Tutorial          By: vasu at 2013-04-18 17:36:35

5. its very helpful and understandable.thanq
View Tutorial          By: Deepika darapaneni at 2012-03-24 14:16:39

6. Hey i see some lines of code in order to displpay
View Tutorial          By: Bala at 2013-01-09 13:58:48

7. Nice Explanation.....
View Tutorial          By: Vinoth at 2012-06-20 09:37:21

8. This tutorial is so simple, often we dont need to
View Tutorial          By: NIrjhar at 2011-12-12 03:29:52

9. Hello, I have stupid questions, but I need to ask
View Tutorial          By: Johnson Edison at 2012-12-13 17:10:57

10. can you gave us a sample form that has a design
View Tutorial          By: niknik at 2011-07-01 09:39:21