•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Java section within the Software Development category of DaniWeb, a massive community of 397,758 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,464 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Java advertiser: Lunarpages Java Web Hosting
Hi this is a very simple program explaining of Threads using the runnable interface. I hope this will help in some other way.
email me at: sri_jes@yahoo.co.in
email me at: sri_jes@yahoo.co.in
public class ThreadTester { public static void main(string args[]) { Runnableex r=new Runnableex(); Thread t=new Thread(e); t.start(): ) } class Runnableex implements Runnable { int i; public void run() { i=0; while(true) { System.out.println("HELLO"+i++); if(i==50) { break; } } } }
Comments (Newest First)
finepax007 | Newbie Poster | Mar 8th, 2008
•
•
•
•
Runnableex r=new Runnableex(); Thread t=new Thread(r); t.start();
sri_jes13 | Newbie Poster | Feb 8th, 2008
Post Comment
•
•
•
•
DaniWeb Marketplace (Sponsored Links)