{"id":882,"date":"2008-09-10T17:07:54","date_gmt":"2008-09-10T16:07:54","guid":{"rendered":"http:\/\/www.itwriting.com\/blog\/882-doubling-performance-with-silverlight-multithreading.html"},"modified":"2008-09-10T17:07:54","modified_gmt":"2008-09-10T16:07:54","slug":"doubling-performance-with-silverlight-multithreading","status":"publish","type":"post","link":"https:\/\/www.itwriting.com\/blog\/882-doubling-performance-with-silverlight-multithreading.html","title":{"rendered":"Doubling performance with Silverlight multithreading"},"content":{"rendered":"<p>Bart Czernicki has a <a href=\"http:\/\/www.silverlighthack.com\/post\/2008\/09\/07\/Silverlight-MultiThreading-with-a-Computational-Process-(Counting-Primes).aspx\">detailed post<\/a> showing how Silverlight 2.0\u2019s multithreading can improve performance. He took my <a href=\"http:\/\/www.itwriting.com\/blog\/counting-primes-in-flash-and-silverlight\">counting primes<\/a> code and&#160; adapted it for parallel processing. On my quad core system the results are impressive: <\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.itwriting.com\/images\/sl_threads.gif\" \/> <\/p>\n<p>As you can see by squinting at the screen grab, the processing time went from 0.43 to 0.20 seconds.<\/p>\n<p>Multithreading is getting a bad rap in some quarters, because it greatly complicated debugging. On the other hand, if you have an app which does some heavy duty calculations then performance benefits like this are worth a little pain.<\/p>\n<div class=\"wlWriterSmartContent\" id=\"scid:0767317B-992E-4b12-91E0-4F059A8CECA8:b1b78d67-6ee6-4bbc-9899-f55c254c0335\" style=\"padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px\">Technorati tags: <a href=\"http:\/\/technorati.com\/tags\/silverlight\" rel=\"tag\">silverlight<\/a>, <a href=\"http:\/\/technorati.com\/tags\/threading\" rel=\"tag\">threading<\/a>, <a href=\"http:\/\/technorati.com\/tags\/performance\" rel=\"tag\">performance<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Bart Czernicki has a detailed post showing how Silverlight 2.0\u2019s multithreading can improve performance. He took my counting primes code and&#160; adapted it for parallel processing. On my quad core system the results are impressive: As you can see by squinting at the screen grab, the processing time went from 0.43 to 0.20 seconds. Multithreading &hellip; <a href=\"https:\/\/www.itwriting.com\/blog\/882-doubling-performance-with-silverlight-multithreading.html\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Doubling performance with Silverlight multithreading<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[55,77,80],"tags":[],"class_list":["post-882","post","type-post","status-publish","format-standard","hentry","category-microsoft","category-silverlight","category-software-development"],"_links":{"self":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts\/882","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/comments?post=882"}],"version-history":[{"count":0,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts\/882\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/media?parent=882"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/categories?post=882"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/tags?post=882"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}