Test-and-set lock

Test-and-set lock

TSL son las siglas de Test and set lock, una instrucción hardware utilizada por ciertos procesadores para facilitar la creación de semáforos y otras herramientas necesarias para la programación concurrente en computadores. TSL es una instrucción máquina que provoca la lectura del contenido de una palabra de la memoria en un registro y el almacenamiento de un valor distinto de cero en dicha palabra de memoria. Al tratarse de una instrucción máquina, el procesador nos garantiza que la instrucción TSL es realizada sin ningún tipo de interrupción por parte de otro proceso, es decir las operaciones de lectura y escritura de la palabra tienen la garantía de ser indivisibles. Además, si nos encontramos en un sistema multiprocesador, ninguno de los demás procesadores tendrá acceso a la palabra hasta que termine de ejecutarse la instrucción. El procesador que ejecuta la instrucción TSL cierra el bus de la memoria para prohibir a los demás el acceso a la memoria hasta el término de la instrucción.


Wikimedia foundation. 2010.

Игры ⚽ Нужно решить контрольную?

Mira otros diccionarios:

  • Test-and-set — Test and set  простая неразрывная (атомарная) процессорная инструкция, которая копирует значение переменной в регистр, и устанавливает некое новое значение. Во время исполнения данной инструкции процессор не может прервать её выполнение и… …   Википедия

  • Test-and-set — In computer science, the test and set instruction is an instruction used to both test and (conditionally) write to a memory location as part of a single atomic (i.e. non interruptible) operation. This means setting a value, but first performing… …   Wikipedia

  • Test and Test-and-set — In computer science, the test and set CPU instruction is used to implement mutual exclusion in multiprocessor environments. Although a correct lock can be implemented with test and set, it can lead to memory contention in busy lock (caused by bus …   Wikipedia

  • Lock (computer science) — In computer science, a lock is a synchronization mechanism for enforcing limits on access to a resource in an environment where there are many threads of execution. Locks are one way of enforcing concurrency control policies. Contents 1 Types 2… …   Wikipedia

  • Test Track — Infobox Disney ride name= Test Track caption= park= Epcot land= designer= Walt Disney Imagineering, General Motors Corporation manufacturer= type= High speed simulated test track theme= Vehicle Test Facility control system= Wayside… …   Wikipedia

  • Lock and Key — Infobox Book name = Lock and Key title orig = image caption = translator = author = Sarah Dessen cover artist = country = United States language = English genre = Young adult publisher = Viking Children’s Books release date = April 22, 2008 media …   Wikipedia

  • Fetch-and-add — In computer science, the fetch and add CPU instruction is a special instruction that atomically modifies the contents of a memory location. It is used to implement Mutual exclusion and concurrent algorithms in multiprocessor systems.In… …   Wikipedia

  • The Young and the Restless minor characters — The following are characters from the American soap opera The Young and the Restless who are notable for their actions or relationships, but who do not warrant their own articles. Contents 1 Current Characters 1.1 Genevieve …   Wikipedia

  • Bicycle lock — A bicycle lock is a physical security device used on a bicycle to prevent theft. It is generally used to fasten the bicycle to a bicycle stand or other immovable object.An important difficulty in preventing the theft of a bicycle is that the… …   Wikipedia

  • Comparison of C Sharp and Java — The correct title of this article is Comparison of C# and Java. The substitution or omission of the # sign is because of technical restrictions. Programming language comparisons General comparison Basic syntax Basic instructions …   Wikipedia

Compartir el artículo y extractos

Link directo
Do a right-click on the link above
and select “Copy Link”