|
Reentrant - Wikipedia, the free encyclopedia
Reentrant or re-entrant can refer to: •Reentrant (subroutine) in computer coding. •Reentrant mutex in computer science. •Salients, re-entrants and pockets in military tactics. •Reentrant tuning in ...
en.wikipedia.org/wiki/Reentrant |
|
Reentrant (subroutine) - Wikipedia, the free encyclopedia
A computer program or routine is described as reentrant if the routine can be re-entered while it is already running (i.e it can be safely executed concurrently). To be reentrant, a computer program...
en.wikipedia.org/wiki/Reentrant_(subroutine) |
|||
|
|
|||
|
|||
|
|||
|
This proposed model would make the programmer's job easier in following the guidelines for reentrant functions, and by using this model, code would be protected against the unintentional reentrancy bug.
|
|||
|
Subject: Reentrant code / Critical section / Atomic Section ... "Reentrant code" is a piece of code that could be simultaneously running by multiple threads of execution. (either via SMP, or via preemption on uniprocessor machines)
|
|||
|
You can use embedded SQL statements in multi-threaded or reentrant code. However, if you use a single connection, you are restricted to one active request per connection. In a multi-threaded application, you should not use the same connection to the database on each thread unless you use a semaphore to control access.
|
|||
|
If you know that your code is going to run only on a uniprocessor implementation, never try to use scheduling as a ... For example, in a thread-reentrant routine that is called multiple times to return a stream of information (such as to list all active connections to a server or to return a list of users),
|
Copyright © 2010, Dictionary.com, LLC. All rights reserved.