存档

2009年12月16日 的存档

Thread Local Storage Platform Issues and Dbstl’s Solutions

2009年12月16日 davidzhao 评论已被关闭

1. Overview

Thread local storage(tls) is a feature provided by most modern operating
systems(OS) that allow multiple threads within a process to have its own “global”
data, but the scope of the “global” data is restricted within a thread
itself, i.e. tls variables are thread wide global variables.

TLS can be useful if we want to store global data which are grouped by
threads, each thread only accesses its own piece of data, and have no loss of
concurrency. Without tls, we would have to store such data in a global data
structure (process wide) and use locks to sychronize access to it.

阅读全文…

分类: Berkeley DB, David Zhao, 程序设计 标签:
Դ