﻿
{"id":4743,"date":"2016-07-13T09:08:41","date_gmt":"2016-07-13T09:08:41","guid":{"rendered":"http:\/\/www.gencayyildiz.com\/blog\/?p=4743"},"modified":"2016-07-13T09:08:41","modified_gmt":"2016-07-13T09:08:41","slug":"multi-thread-calismanin-avantaj-ve-dezavantajlari","status":"publish","type":"post","link":"https:\/\/www.gencayyildiz.com\/blog\/multi-thread-calismanin-avantaj-ve-dezavantajlari\/","title":{"rendered":"Multi Thread \u00c7al\u0131\u015fman\u0131n Avantaj ve Dezavantajlar\u0131"},"content":{"rendered":"<div id=\"fb-root\"><\/div>\n<p>Merhaba,<\/p>\n<p>\u00d6nceki\u00a0<a href=\"http:\/\/www.gencayyildiz.com\/blog\/c-ile-multi-thread-programlamada-thread-kavrami\/\" target=\"_blank\">C# \u0130le Multi Thread Programlamada \u201cThread\u201d Kavram\u0131<\/a>\u00a0ba\u015fl\u0131kl\u0131 yaz\u0131m\u0131zda detayl\u0131 Thread kavram\u0131n\u0131 ele alm\u0131\u015ft\u0131k. Bu yaz\u0131m\u0131zda ise Multi Thread \u00e7al\u0131\u015fman\u0131n avantaj ve dezavantajlar\u0131na de\u011finece\u011fiz.<\/p>\n<p>\u015euana kadar Multi Thread hakk\u0131nda bildiklerimizi toparlarsak; Multi Thread \u00e7al\u0131\u015fman\u0131n manas\u0131, programda yap\u0131lacak i\u015flemleri farkl\u0131 thread&#8217;larda tasarlamak ve bu threadlar\u0131 paralel bir bi\u00e7imde \u00e7al\u0131\u015ft\u0131rmakt\u0131r. Haliyle program a\u00e7\u0131s\u0131ndan \u00e7al\u0131\u015fma zaman\u0131 k\u0131salm\u0131\u015f, kullan\u0131c\u0131 a\u00e7\u0131s\u0131ndan da program\u0131n kullan\u0131m ve i\u015flevsellik performans\u0131 artm\u0131\u015f ve maliyeti azalm\u0131\u015f olacakt\u0131r.<\/p>\n<p>Yukar\u0131da adresini verdi\u011fim \u00f6nceki yaz\u0131mdan hat\u0131rlarsan\u0131z e\u011fer process i\u00e7erisindeki varsay\u0131lan thread <em><strong>Primary Thread<\/strong><\/em> olarak nitelendirilmekteydi. Bunun d\u0131\u015f\u0131nda yarat\u0131larak olu\u015fturulan threadlara ise <em><strong>Worker Thread<\/strong><\/em> denmektedir.<\/p>\n<p><em><strong>Single Thread \u00c7al\u0131\u015fmada<\/strong><\/em> bir i\u015flem bitmeden di\u011fer i\u015flem ba\u015flayamamakta, bundan yola \u00e7\u0131k\u0131larak uygulama farkl\u0131 threadlara b\u00f6l\u00fcnerek <em><strong>Multi Thread \u00c7al\u0131\u015fma<\/strong><\/em>\u00a0sayesinde \u00f6nceki i\u015flemlerin bitmesi beklenmeden di\u011fer i\u015flemlerde \u00e7al\u0131\u015fabilmektedir.<\/p>\n<blockquote><p>E\u011fer tek mikro i\u015flemcili bir sistemde \u00e7al\u0131\u015f\u0131yorsan\u0131z Thread&#8217;lar ayn\u0131 anda \u00e7al\u0131\u015fmazlar. Zaman payla\u015f\u0131ml\u0131 olarak \u00e7al\u0131\u015ft\u0131r\u0131l\u0131rlar. Buda farazi ayn\u0131 anda \u00e7al\u0131\u015f\u0131yormu\u015f g\u00f6r\u00fcn\u00fcm\u00fc verir.<\/p><\/blockquote>\n<h3>Multi Thread \u00c7al\u0131\u015fman\u0131n Avantaj &amp; Dezavantajlar\u0131<\/h3>\n<p>\u00d6ncelikle Multi Thread \u00e7al\u0131\u015fman\u0131n avantajlar\u0131n\u0131 ele almak gerekirse bunlar aras\u0131ndan en g\u00f6zde olan\u0131 asenkron yakla\u015f\u0131m diye nitelendirdi\u011fimiz uygulama i\u00e7erisinde g\u00f6revlerin paralel bir \u015fekilde, beklemeksizin ger\u00e7ekle\u015ftirilebiliyor olmas\u0131d\u0131r. Bunun yan\u0131nda, Multi Thread bir uygulamada threadlardan birinin harap olmas\u0131 di\u011ferlerini etkilemez ve uygulama di\u011fer kanallardan normal \u00e7al\u0131\u015fmaya devam eder.<\/p>\n<p>Elle tutulur tek olumsuz yan\u0131 tek mikro i\u015flemciye sahip sistemlerde performans kayb\u0131d\u0131r. Nihayetinde ayn\u0131 anda \u00e7al\u0131\u015fan thread say\u0131s\u0131 ile her bir thread\u0131n \u00e7al\u0131\u015ft\u0131r\u0131lma miktar\u0131 aras\u0131nda ters bir ortant\u0131 s\u00f6z konusudur.<\/p>\n<p>Evet, bu i\u00e7eri\u011fimizden sonra art\u0131k Multi Thread i\u015flemler ger\u00e7ekle\u015ftirmemizi sa\u011flayacak olan System.Threading.Thread s\u0131n\u0131f\u0131na de\u011finece\u011fiz. Tabi bunu bir sonraki i\u00e7eri\u011fimizde ger\u00e7ekle\u015ftirece\u011fiz.<\/p>\n<p>\u015eimdilik g\u00f6r\u00fc\u015fmek \u00fczere diyorum&#8230;<\/p>\n<p>\u0130yi \u00e7al\u0131\u015fmalar&#8230;<\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>Merhaba, \u00d6nceki\u00a0C# \u0130le Multi Thread Programlamada \u201cThread\u201d Kavram\u0131\u00a0ba\u015fl\u0131kl\u0131 yaz\u0131m\u0131zda detayl\u0131 Thread kavram\u0131n\u0131 ele alm\u0131\u015ft\u0131k. Bu yaz\u0131m\u0131zda ise Multi Thread \u00e7al\u0131\u015fman\u0131n avantaj ve dezavantajlar\u0131na de\u011finece\u011fiz. \u015euana kadar Multi Thread hakk\u0131nda bildiklerimizi toparlarsak; Multi Thread \u00e7al\u0131\u015fman\u0131n&#46;&#46;&#46;<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":1,"featured_media":3223,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[1330,1354,1352,1357,1356,1235,1355],"class_list":["post-4743","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-c-sharp-c","tag-multi-thread","tag-multi-thread-calisma","tag-primary-thread","tag-single-thread","tag-single-thread-calismada","tag-thread","tag-worker-thread"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/posts\/4743","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/comments?post=4743"}],"version-history":[{"count":0,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/posts\/4743\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/media\/3223"}],"wp:attachment":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/media?parent=4743"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/categories?post=4743"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/tags?post=4743"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}