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
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
Related Tutorials
Java program to get location meta data from an image
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
Count number of vowels, consonants and digits in a String in Java
Student marks calculation program in Java
Calculate gross salary in Java
Calculate average sale of the week in Java
Vector in Java - Sample Program
Archived Comments
1. hi,
i need to connect to server named xxx,i
View Tutorial By: annamalai at 2012-05-21 10:09:52
2. I don't undrstnd.. cz I think in recurs the method
View Tutorial By: Alina Ali at 2014-11-13 03:06:17
3. Thank you for this. I am a beg and this is making
View Tutorial By: mac at 2011-08-23 13:47:15
4. Thanks man, really very helpful..,.
Thanks
View Tutorial By: Manish at 2012-10-18 06:19:03
5. Thanks sir i am understand to jdbc but who will ru
View Tutorial By: Ranjeet singh at 2012-05-04 07:40:29
6. could u pls tell me whcih class is implemted by it
View Tutorial By: AMIT at 2009-10-04 00:21:30
7. You can save a file from the content of the input.
View Tutorial By: anne at 2011-11-22 10:50:10
8. help
View Tutorial By: sne at 2012-08-10 07:13:28
9. a very rare but useful tutorial. Thanks a bunch!
View Tutorial By: Dalitso at 2014-02-19 12:07:34
10. this is not good example we want better...
View Tutorial By: sabari nathan.p at 2011-06-15 03:27:18