リエントラント【reentrant】
再入可能
リエントラント
出典: フリー百科事典『ウィキペディア(Wikipedia)』 (2023/08/24 15:52 UTC 版)
リエントラント(英: reentrant / re-entrant、再入可能)およびリエントランシー(英: reentrancy / re-entrancy、再入可能性)とは、あるプログラムやサブルーチンの実行を完了する前に、割り込みなどにより、同じプログラムやサブルーチンを実行しても安全だという性質を指す。割り込みは分岐や呼び出しなどの内部的な動きによって生じる場合もあるし、ハードウェア割り込みやシグナルなどの外部の動きによって生じる場合もある。割り込みの実行を完了後に、割り込み前の実行に影響を与えずに継続できる。
- ^ Kerrisk 2010, p. 657.
- ^ Use reentrant functions for safer signal handling | IBM Developer
- ^ 安全なシグナル処理のために再入可能ファンクションを使う | IBM Developer
- ^ Andrew N. Sloss, Dominic Symes, Chris Wright, John Rayfield (2004). ARM System Developer's Guide. p. 342
- ^ John Regehr (2006) (PDF). Safe and structured use of interrupts in real-time and embedded software
- ^ Man page of PTHREAD_MUTEX
- ^ pthread_mutexattr_settype(3) - Linux man page
- ^ EnterCriticalSection function | Microsoft Docs After a thread has ownership of a critical section, it can make additional calls to EnterCriticalSection or TryEnterCriticalSection without blocking its execution. This prevents a thread from deadlocking itself while waiting for a critical section that it already owns.
- ^ Thread-safety and POSIX.1
- ^ Signal Handlers and Async-Signal Safety (Multithreaded Programming Guide) | Oracle
- ^ シグナルハンドラと「非同期シグナル安全」 (マルチスレッドのプログラミング) | Oracle
- リエントラントのページへのリンク