{"id":11893,"date":"2012-04-23T22:24:35","date_gmt":"2012-04-23T13:24:35","guid":{"rendered":"https:\/\/www.hardkernel.com\/?p=11893"},"modified":"2018-12-07T12:07:49","modified_gmt":"2018-12-07T03:07:49","slug":"multi-core-programming-parallel-computing","status":"publish","type":"post","link":"https:\/\/www.hardkernel.com\/ko\/blog\/multi-core-programming-parallel-computing\/","title":{"rendered":"Multi-core programming (Parallel computing)"},"content":{"rendered":"<p>Hi everyone,<\/p>\n<p>As you know well, Samsung Exynos-4210 contains TWO Cortex-A9 processors.<br \/>\nSo all of ODROID-A, ODROID-PC and ODROID-A4 has dual-core powered computing performance.<\/p>\n<p>To utilize full computing power of dual-core in Android, you need to learn Multi-thread programming.<\/p>\n<p>This <a href=\"https:\/\/dn.odroid.com\/obsolete\/odroid-a4\/Multithreading.pdf\">document<\/a> explains the multi-threading in JAVA as well as Native C\/C++(NDK) code.<br \/>\nPlease note this great article has been written by Alvaro.<\/p>\n<p>There are two source code packages for Java and NDK example.<\/p>\n<p><a href=\"https:\/\/dn.odroid.com\/obsolete\/odroid-a4\/labbook-Multithreading.rar\">labbok-Multithreading.rar<\/a> contains modified graphical interface with an asynchronous task in JAVA.<\/p>\n<p><a href=\"https:\/\/dn.odroid.com\/obsolete\/odroid-a4\/labbook-NDKMultithreading.rar\">labbok-NDKMultithreading.rar<\/a> contains Fibonacci calculation in NDK.<\/p>\n<p>Enjoy the document and example codes for your programming in multi-core world.<\/p>\n<p><strong>This <\/strong>screen shot<strong> shows the result of Fibonacci sequence calculation. He tried 30 numbers of sequence with ODROID-A4 ICS build.<\/strong><br \/>\n<strong>It took 420msec with single-core and 230msec with dual-core.<\/strong><br \/>\n<strong>So we can say the dual-core has significant boosted <\/strong>speed<strong> about 180% of the single-core.<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-11896\" src=\"https:\/\/www.hardkernel.com\/wp-content\/uploads\/2018\/12\/dual.jpg\" alt=\"\" width=\"800\" height=\"480\" srcset=\"https:\/\/www.hardkernel.com\/wp-content\/uploads\/2018\/12\/dual.jpg 800w, https:\/\/www.hardkernel.com\/wp-content\/uploads\/2018\/12\/dual-768x461.jpg 768w, https:\/\/www.hardkernel.com\/wp-content\/uploads\/2018\/12\/dual-247x148.jpg 247w, https:\/\/www.hardkernel.com\/wp-content\/uploads\/2018\/12\/dual-510x306.jpg 510w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>Once again, really appreciate Alvaro&#8217;s sharing.<\/p>\n<p>Another news!<br \/>\nWe will release an example code with OpenMP to show you alternative approach of multi-core programming by this weekend.<br \/>\nSo stay tuned!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi everyone, As you know well, Samsung Exynos-4210 contains TWO Cortex-A9 processors. So all of ODROID-A, ODROID-PC and ODROID-A4 has dual-core powered computing performance. To utilize full computing power of dual-core in Android, you need to learn Multi-thread programming. This document explains the multi-threading in JAVA as well as Native C\/C++(NDK) code. Please note this [&#8230;]\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18463],"tags":[20866,20904,20870],"class_list":["post-11893","post","type-post","status-publish","format-standard","hentry","category-blog","tag-odroid-a","tag-odroid-a4","tag-odroid-pc"],"_links":{"self":[{"href":"https:\/\/www.hardkernel.com\/ko\/wp-json\/wp\/v2\/posts\/11893","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hardkernel.com\/ko\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hardkernel.com\/ko\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hardkernel.com\/ko\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hardkernel.com\/ko\/wp-json\/wp\/v2\/comments?post=11893"}],"version-history":[{"count":1,"href":"https:\/\/www.hardkernel.com\/ko\/wp-json\/wp\/v2\/posts\/11893\/revisions"}],"predecessor-version":[{"id":11898,"href":"https:\/\/www.hardkernel.com\/ko\/wp-json\/wp\/v2\/posts\/11893\/revisions\/11898"}],"wp:attachment":[{"href":"https:\/\/www.hardkernel.com\/ko\/wp-json\/wp\/v2\/media?parent=11893"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hardkernel.com\/ko\/wp-json\/wp\/v2\/categories?post=11893"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hardkernel.com\/ko\/wp-json\/wp\/v2\/tags?post=11893"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}