<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>potisan</author_name>
  <author_url>https://blog.hatena.ne.jp/potisan/</author_url>
  <blog_title>potisanのプログラミングメモ</blog_title>
  <blog_url>https://potisan-programming-memo.hatenablog.jp/</blog_url>
  <categories>
    <anon>C#</anon>
  </categories>
  <description>メモ マルチスレッドプログラミングは不慣れなので、まずはTaskについて調べたメモです。以下のThread、ThreadPool、Task等はSystem.Threading.Tasks名前空間 (Microsoft Learn)の所属です。 TaskはスレッドプールThreadPoolのスレッドを使う。スレッドを使い回すので効率が良い。 某SEOに強いサイトの「Taskはリソースを消費しない」はおそらく概要にしても不正確。スレッドプールは最初にいくつかのスレッドを用意して途中で追加する場合もあるので「Taskはリソースを消費しにくい」の方が近い。 長期間の非同期処理はThread、短期間の非…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpotisan-programming-memo.hatenablog.jp%2Fentry%2F2025%2F03%2F19%2F014053&quot; title=&quot;C# Taskメモ - potisanのプログラミングメモ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-03-19 01:40:53</published>
  <title>C# Taskメモ</title>
  <type>rich</type>
  <url>https://potisan-programming-memo.hatenablog.jp/entry/2025/03/19/014053</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
