Friday 15 February 2013

java - How to ensure that a thread is executed in another CORE? -



java - How to ensure that a thread is executed in another CORE? -

trying execute thread in core, utilize java.util.concurrent.executor

i dont know if plenty create thread running in core so, want know in witch core every thread executed.

any idea?

executor executor = executors.newsinglethreadexecutor(); executor.execute(new runnable() { //some work });

this discussed in more detail in post: java thread affinity

some code popped out here.

the thought set affinity of thread making native phone call through jni , set affinity native code.

java multithreading multicore

No comments:

Post a Comment