I want to create a new thread in a program that i'm working on but i cant get my new threads to start
does anyone have some code that would allow me to create and start new threads
alastair1008 11 Newbie Poster
Recommended Answers
Jump to PostLets see yours, and we'll help you fix it, otherwise see this.
Jump to PostHere is the concurrency tutorial as a starting place: http://download.oracle.com/javase/tutorial/essential/concurrency/index.html
Which I provided in the first reply. ;-)
Jump to PostI just need to know how to use this
class NewThread implements Runnable { Thread t; NewThread () { // Create a new, second thread t = new Thread (this, "Demo Thread"); System.out.println ("Child thread: " + t); t.start (); // Start the thread } public static void …
All 9 Replies
masijade 1,351 Industrious Poster Team Colleague Featured Poster
alastair1008 11 Newbie Poster
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster
alastair1008 11 Newbie Poster
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster
masijade 1,351 Industrious Poster Team Colleague Featured Poster
Ezzaral commented: Indeed :) +14
masijade 1,351 Industrious Poster Team Colleague Featured Poster
Taywin 312 Posting Virtuoso
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.