Multithreading java -


i'm trying figure out how multithread in java. right now, program works fine no concurrency want implement multithreading speed along.

the program runs several objects of separate sub class , 50% of time evaluation each of objects spent in process utilizes 1 core rather 8 available. these objects independent of 1 until used inputs in program.

i trying multithread having subclass implement runnable , have program use thread each such object. correct way?

however, how threads in java handeled? need dispose of threads after each run? how join work?

thanks

don't manage threads manually, take @ executors , thread pools in java


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -