int iThreadCount = 1;
iThreadCount = GHMTreadUtil.getHygThreadCount();
arrHygThread = new Thread[iThreadCount];
for(int iCount=0;iCount<iThreadCount;iCount++)
{
LogMgr.logDebugInfo("spawning the HYG Thread"+iCount,objDebug);
Job1 objJob1=new Job1 ();
Job2 objJob2 =new Job2 ();
Thread objHygThread = new Thread(objJob1,objJob2);
arrHygThread[iCount]=objHygThread;
objHygThread.start();
}
If i want to create the thread for the 2 jobs as specified below
Thread objHygThread = new Thread(objJob1,objJob2);
Need i used to import anything? If anyone knows answer for this,then pls let me know.
Thanks in advance.