Sponsored Content
Full Discussion: Parallel process in java
Top Forums Programming Parallel process in java Post 302642233 by chercheur857 on Thursday 17th of May 2012 06:13:56 AM
Old 05-17-2012
Thank you so much for help.
Code:
Thread thread = new Thread("New Thread") {
public void run(){ 
//instruction
}
}; 
Thread thread1 = new Thread("New Thread1") {
public void run(){ 
while(condition)
{
//instruction1

}
}
}; 
thread.start();
thread1.start();

Please, How to leave the while when thread finish its execution?

Last edited by Scrutinizer; 05-17-2012 at 07:29 AM.. Reason: code tags instead of quote tags
 

We Also Found This Discussion For You

1. Shell Programming and Scripting

Monitoring processes in parallel and process log file after process exits

I am writing a script to kick off a process to gather logs on multiple nodes in parallel using "&". These processes create individual log files. Which I would like to filter and convert in CSV format after they are complete. I am facing following issues: 1. Monitor all Processes parallelly.... (5 Replies)
Discussion started by: shunya
5 Replies
News::Scan::Thread(3pm) 				User Contributed Perl Documentation				   News::Scan::Thread(3pm)

NAME
News::Scan::Thread - keep track of threads in a Usenet newsgroup SYNOPSIS
use News::Scan::Thread; my $thr = News::Scan::Thread->new($news_scan_article_obj); DESCRIPTION
This module provides a class whose objects can be used to keep track of threads of discussion in a Usenet newsgroup. CONSTRUCTOR
new ( ARTICLE ) "ARTICLE" should be a "News::Scan::Article" object or an object of some class derived from "News::Scan::Article". "new" performs some initialization and returns a "News::Scan::Thread". METHODS
subject Returns this thread's subject. volume Returns the volume in bytes generated in this thread. articles Returns the number of posts to this thread. header_volume Returns the volume in bytes of the headers in this thread's articles. header_lines Returns the number of header lines in this thread's articles. body_volume Returns the volume in bytes of the message bodies of this thread's articles. body_lines Returns the number of lines in this thread's message bodies. orig_volume Returns the volume in bytes of the original content of this thread's articles. orig_lines Returns the number of original lines in this thread's articles. sig_volume Returns the volume in bytes of the signatures of this thread's articles. sig_lines Returns the number of signature lines in this thread's articles. SEE ALSO
News::Scan, News::Scan::Article AUTHOR
Greg Bacon <gbacon@cs.uah.edu> COPYRIGHT
Copyright (c) 1997 Greg Bacon. All Rights Reserved. This library is free software. You may distribute and/or modify it under the same terms as Perl itself. perl v5.10.1 2000-04-13 News::Scan::Thread(3pm)
All times are GMT -4. The time now is 01:42 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy