Posted on 2008-02-12
Medium Priority
Last Modified: 2010-03-30
Hello Experts,

I have two classes and i want to create a ThreadTest class which will create and run the two classes.

i did something but i dont know if that's the correct way of running threads:

public static void main( )
            //declare the threads
            ThreadTest Updater = new ThreadTest( );
            ThreadTest Checker = new ThreadTest( );


            System.err.println( "Started two Threads" );

Can you give a look to it ??
Thanks in advance!
Question by:perdoname_
LVL 23

Accepted Solution

Ajay-Singh earned 450 total points
ID: 20880196
You are creating the threads correctly

Assisted Solution

Ryan_Kempt earned 150 total points
ID: 20880231
Simple eh? You are creating the two threads properly.

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Suggested Courses

592 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question