<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>moqoo</author_name>
  <author_url>https://blog.hatena.ne.jp/moqoo/</author_url>
  <blog_title>ムードもりあげ楽団</blog_title>
  <blog_url>https://moqoo.hatenadiary.org/</blog_url>
  <categories>
    <anon>今日の記録</anon>
    <anon>コンピュータ</anon>
    <anon>Java並行処理</anon>
  </categories>
  <description>1時半就寝・7時半起床。 ロック順によるデッドロック 最も良くある生存事故のパターン。全てのスレッドが同じ順序でロックを取得しないと、デッドロックに陥る可能性がある。 public void leftRight() { synchronized(left) { synchronized(right) { ... } } } public void rightLeft() { synchronized(right) { synhronized(left) { ... } } } 複数のロックを用いなければこのような問題は発生しないが、複数ロックを使用する場合はグローバルにロック順序が固定化されて…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmoqoo.hatenadiary.org%2Fentry%2F20090327%2F1238110170&quot; title=&quot; 第十章: 生存事故 - ムードもりあげ楽団&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>2009-03-27 08:29:30</published>
  <title> 第十章: 生存事故</title>
  <type>rich</type>
  <url>https://moqoo.hatenadiary.org/entry/20090327/1238110170</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
