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
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
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
MultiLevel Inheritance sample in Java
Archived Comments
1. Nice Explanation
View Tutorial By: sam at 2010-11-24 02:23:57
2. Thanx..very useful in this pgm..
View Tutorial By: priya at 2013-02-06 10:54:44
3. yes it is good example for abstract classes.Thanks
View Tutorial By: Nilesh Chavan at 2010-07-17 02:24:42
4. this is the output i get.
Help me.
<
View Tutorial By: shubham saxena at 2014-04-01 17:06:00
5. Hi dude's it's working fine for me.first i got no
View Tutorial By: raavi.surendra at 2011-11-16 10:10:31
6. Hello, this is working fine with jpg file. But I w
View Tutorial By: Ray at 2015-09-01 04:18:00
7. HI.....
javax.comm.NoSuchPortExcept
View Tutorial By: RAHUL at 2010-12-28 22:59:41
8. #!/bin/bash
echo "Enter number
View Tutorial By: ashish at 2011-03-25 07:46:09
9. place both comm.jar and javax.comm.properties in l
View Tutorial By: Rania at 2010-09-14 19:52:49
10. Very good. very clear. thank you
View Tutorial By: Andrei at 2012-12-16 04:29:36