<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ryuichi1208</author_name>
  <author_url>https://blog.hatena.ne.jp/ryuichi1208/</author_url>
  <blog_title>地方エンジニアの学習日記</blog_title>
  <blog_url>https://ryuichi1208.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>この記事は「渡部 Advent Calendar 2025」の7日目の記事です。 ja.wikipedia.org pthread の TLS(Thread-Local Storage) を扱う API（pthread_key_create, pthread_setspecific, pthread_getspecific）が “重い” と言われる理由は、実装上の構造・呼び出しコスト・同期コスト が複合して効いているためです。 この記事は、CPU アーキテクチャの TLS（__thread / thread_local）との比較を交えながら整理していきます。 結論：pthread TLS が重…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fryuichi1208.hateblo.jp%2Fentry%2F2025%2F12%2F07%2F000000&quot; title=&quot;【Linux】pthreadのTLSのオーバーヘッド - 地方エンジニアの学習日記&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-12-07 00:00:00</published>
  <title>【Linux】pthreadのTLSのオーバーヘッド</title>
  <type>rich</type>
  <url>https://ryuichi1208.hateblo.jp/entry/2025/12/07/000000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
