java multithread 1 Answer(s) 3 years and 4 months ago
Posted in : Java Beginners
Hi, I have developed one java application.It should be running continuously. Using multithreads how to make the application to run continuously. Could you please help me.
Thank you,
View Answers
January 18, 2010 at 12:29 PM
Hi Friend,
Try the following code:
class MyThread extends Thread{ MyThread(String s){ super(s); start(); } public void run(){ for(int i=0;i<100;i++){ System.out.println("Thread Name :" +Thread.currentThread().getName()); try{ Thread.sleep(1000); }catch(Exception e){} } } } public class MultiThread1{ public static void main(String args[]){ System.out.println("Thread Name :" +Thread.currentThread().getName()); MyThread m1=new MyThread("My Thread 1"); MyThread m2=new MyThread("My Thread 2"); } }
Thanks
Related Pages:
Java Multithread Java Multithread Hi All. I am trying to make a program in Java that uses Multithread. That program is about a bank account shared between husband and wife who use debit cards.
I wrote the Java program using 2 threads but i am
Java MultiThread - Java Beginners Java MultiThread what is the meaning of standalone application in multithread.How can we write multi programms in multithread process and execution....");
}
}
-----------------------------------------------------
Visit for more information.
http://www.roseindia.net/java/thread/Java
java multithread - Java Beginners java multithread Hi,
Thanks for your multithreading java code. It helped me a lot.
But i have one issue. My code is look like this.
public class classname extends Thread {
public classname() {
super
java multithread - Java Beginners java multithread Hi,
I have developed one java application.It should be running continuously. Using multithreads how to make the application to run continuously.
Could you please help me.
Thank you, Hi Friend
java multithread - Development process java multithread sir i am send it again sir.please reply me sir.Develop multi-threaded echo server and a corresponding GUI client in java. Multi-threaded ECHO SERVER and GUI client program by Whitman Kumaresh for my
Java MultiThread Java has multithreading feature.
Multithreading feature is given by Thread class and Runnable
interface
Java Multithreading allows to run multiple tasks(threads) at a time.
Java Multi Thread Example
public class multi
Java Interview Questions - Page 5 Java Interview Questions - Page 5
Question: How to create multithread in a program... to start the thread.
Question: Can Java object be locked down for exclusive
Multithreading ? - Java Interview Questions
Multithreading ?
Hi Friends,
I am new to java , am not clear with Multithreading. Multithread will cause deadlock. We can... program.
For read more information on Multithread visit to :
http
Java Exception Thread Java Exception Thread
 ... the program. Many
Thread run concurrently in the program. Multithread are those...,the thread run
concurently,synchronous or asynchronous.
Advantage of Multithread
Java Exception - Handle Exceptions in Java Java Exception - Handle Exceptions in
Java
Exceptions in Java...; java
program. The term exception in java stands for an exceptional
Java Thread In Applet Java Thread Applet is a java class that runs inside the internet browser.
It is used to make the gui application, network application in
java
Thread is used in applet to make the multithread application
Example of Java Thread
Java Get Example Java Get Example
In this section of Java Examples, we are going to illustrate various Java..... If
you are a Java beginner this is a best place for you to learn different