{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdk521123.hatenablog.com%2Fentry%2F23800848\" title=\"\u3010C#\u3011\u4e26\u5217\u51e6\u7406\u30fbParallel - \u30d7\u30ed\u30b0\u30e9\u30e0 \u306e\u8d85\u500b\u4eba\u7684\u306a\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","image_url":null,"url":"https://dk521123.hatenablog.com/entry/23800848","author_url":"https://blog.hatena.ne.jp/dk521123/","provider_name":"Hatena Blog","author_name":"dk521123","categories":["C#\u30fb\u30b9\u30ec\u30c3\u30c9"],"blog_url":"https://dk521123.hatenablog.com/","width":"100%","description":"\u25a0 Parallel.For \u30b5\u30f3\u30d7\u30eb \u4f8b1 for (int x = 0; x < 100; x++) { this.MethodA(x); } private void MethodA(int counter) { // \u91cd\u3044\u51e6\u7406 } \u4f8b2 // \u51e6\u74061\u3068\u540c\u3058\u51e6\u7406\u3002\u305f\u3060\u3057\u3001\u975e\u540c\u671f\u306a\u306e\u3067\u30010\uff5e100\u306e\u30e9\u30f3\u30c0\u30e0\u306b\u5b9f\u884c\u3055\u308c\u308b\u3002 Parallel.For(0, 100, (x) => this.MethodA(x)); \u25a0 Parallel.ForEach \u30b5\u30f3\u30d7\u30eb \u4f8b1 foreach(var x in list) { this.MethodA(x); } private void Method\u2026","title":"\u3010C#\u3011\u4e26\u5217\u51e6\u7406\u30fbParallel","type":"rich","blog_title":"\u30d7\u30ed\u30b0\u30e9\u30e0 \u306e\u8d85\u500b\u4eba\u7684\u306a\u30e1\u30e2","provider_url":"https://hatena.blog","published":"2011-04-26 23:11:51","height":"190"}