multithreading - does single thread application utilize multi core in android? -
does single thread application use 4 core in quad-core phone. searched lot , found articles says yes , saying no. articles android os doesn't utilize 4 core.
is android capable of using 4 cores in quad core processor?
does single thread application utilize multi core?
the answer yes.
android built upon linux kernel does utilize mulit-core. far single-threaded-application concerned, remember thread can not executed in-parts on different cores simultaneously. although single-thread can executed different cores @ different point in times, can not sub-divided , executed different cores @ same time.
having said that, please aware chipset manufacturers qualcomm developing intelligent processors capable of sub-dividing single-threaded app code (if , if there mutually exclusive parts) multiple threads , have run on different cores. here again, basic principle remains same - in order utilize multi-core, single thread sub-divided multiple threads.
to out of multi-core chip, rather create multi-threaded app, maximum possible asynchronous threads, have optimum utilization of maximum number of cores. hope clears.
edit:
this translates - app not make use of multiple asynchronous threads (or other parallelism construct) not use more 1 core.
Comments
Post a Comment