<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Naotsugu</author_name>
  <author_url>https://blog.hatena.ne.jp/Naotsugu/</author_url>
  <blog_title>A Memorandum</blog_title>
  <blog_url>https://blog1.mammb.com/</blog_url>
  <categories>
    <anon>Java</anon>
  </categories>
  <description>タスクのキャンセル 単純なキャンセル可能タスク スレッドのインタラプト Future によるキャンセル Future による実行時間の制限 インタラプトできないブロッキング Socket の I/O ブロックに割り込みする まとめ タスクのキャンセル Java にはスレッドを強制的に停止する安全な方法は存在しません。 Thread.stop や Thread.suspend などはこの用途に適したものではありますが、Java非推奨スレッド・プリミティブ にある通り、これらは非推奨であり@Deprecated(since=&quot;1.2&quot;) とマークされているため使うべきではありません。 あるタスクを…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog1.mammb.com%2Fentry%2F2020%2F03%2F25%2F000000&quot; title=&quot;Java におけるタスクのキャンセル処理 - A Memorandum&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>https://m.media-amazon.com/images/I/511lSU4bcXL._SL160_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-03-25 00:00:00</published>
  <title>Java におけるタスクのキャンセル処理</title>
  <type>rich</type>
  <url>https://blog1.mammb.com/entry/2020/03/25/000000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
