I have a java app, and, I want it to take advantage of multicore processors, how do I take advantage of them? Does just spawning a new thread do the trick? Like does the OS decide what core to put the thread on?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, the OS has complete control on what core to put your threads on (at least in Java). You shouldn’t worry about such things. 🙂 Just spawn your threads and let the OS do the work.