<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mawasi99</author_name>
  <author_url>https://blog.hatena.ne.jp/mawasi99/</author_url>
  <blog_title>mawasiの備忘録</blog_title>
  <blog_url>https://mawasi.hateblo.jp/</blog_url>
  <categories>
    <anon>C#</anon>
    <anon>Programming</anon>
  </categories>
  <description>C#で提供されているTimerについて 1. System.Windows.Forms.Timerは同期処理 2. System.Threading.Timerは非同期処理 3. System.Timers.Timerは非同期処理 2. と3. は非同期処理なので、Timerに設定したイベント内の処理時間がタイマー間隔より長かった場合、複数スレッドが作成されることになる。 もしタイマーでシーケンシャルに処理されることを意図した処理なのであればLock処理してやる必要がある。 以下、System.Timers.Timerを使用したサンプル 参考記事 galife - C# の Timer 種類別…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmawasi.hateblo.jp%2Fentry%2F2017%2F01%2F09%2F214543&quot; title=&quot;C#の各種Timerについて - mawasiの備忘録&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>2017-01-09 21:45:43</published>
  <title>C#の各種Timerについて</title>
  <type>rich</type>
  <url>https://mawasi.hateblo.jp/entry/2017/01/09/214543</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
