Apparatus and method for providing a threadsafe object pool with minimal locking

   
   

A threadsafe object pool in accordance with the preferred embodiments reserves each object for a particular thread of execution. Locking of an object pool is normally required to assure that two threads cannot simultaneously request the same object. However, because each object in the pool is reserved for a single thread, no other threads will be allowed to access the object, so the locking of the pool to prevent simultaneously allocating an object to two different threads is not required.

Una piscina del objeto del threadsafe de acuerdo con las encarnaciones preferidas reserva cada objeto para un hilo de rosca particular de la ejecución. La fijación de una piscina del objeto se requiere normalmente asegurar que dos hilos de rosca no puedan solicitar simultáneamente el mismo objeto. Sin embargo, porque cada objeto en la piscina es reservado para un solo hilo de rosca, no se permitirá ningunos otros hilos de rosca tener acceso al objeto, así que la fijación de la piscina a evitar simultáneamente el asignación de un objeto a dos diversos hilos de rosca no se requiere.

 
Web www.patentalert.com

< Type descriptor metamodel

< Method and system for facilitating access to a lookup service

> Method and system for implementing automatic filesystem growth monitor for production UNIX computer system

> Method and system for remote electronic monitoring and mentoring of computer assisted performance support

~ 00149