Method and apparatus for managing locks of objects and method and apparatus for unlocking objects

   
   

A hybrid locking method for preventing a reduction in the processing speed of a frequently executed path which includes locking, accessing and unlocking an object is provided. According to the present invention, at least one contention bit is introduced. The contention bit, which is prepared separately from a lock field, is set when a contention occurs in a light-weight lock, and is cleared when a light-weight lock is shifted to a heavy-weight lock ("inflate" function). Specifically, if a lock of an object is managed by storing a bit representing a type of said lock, and an identifier of a thread having acquired a lock in accordance with a first type of lock or an identifier of a second type of lock into a storage area corresponding to the object, in a state where a plurality of threads exist, following steps are executed: if a first thread attempts to acquire a lock of an object that has been acquired by a second thread, determining whether the bit representing the type of the lock of the object represents the first type of lock; and if the bit represents the first type of lock, setting a contention bit.

Um método travando hybrid para impedir uma redução na velocidade processando de um trajeto freqüentemente executado que inclua travar, alcançar e destravar um objeto é fornecido. De acordo com a invenção atual, ao menos um bocado da disputa é introduzido. O bocado da disputa, que é preparado separada de um campo do fechamento, é ajustado quando uma disputa ocorre em um fechamento light-weight, e sido cancelou quando um fechamento light-weight é deslocado a um fechamento do pesado-peso ("infle" a função). Especificamente, se um fechamento de um objeto for controlado armazenando um bocado que representa um tipo de fechamento dito, e um identificador de uma linha que adquire um fechamento de acordo com um primeiro tipo de fechamento ou um identificador de um segundo tipo de fechamento em uma área de armazenamento que corresponde ao objeto, em um estado onde um plurality das linhas exista, as seguintes etapas são executadas: se uma primeira linha tentar adquirir um fechamento de um objeto que estivesse adquirido por uma segunda linha, determinando se o bocado que representa o tipo do fechamento do objeto representa o primeiro tipo de fechamento; e se o bocado representar o primeiro tipo de fechamento, ajustando um bocado da disputa.

 
Web www.patentalert.com

< System and method for providing a distributable runtime that deploys web applications and services from a workflow, enterprise, and mail-enabled web application server and platform

< Frameworks for efficient representation of string objects in Java programming environments

> System and method to manage data to a plurality of proxy servers through a router by application level protocol and an authorized list

> TRACKING THE TRANSMISSION OF WEB DOCUMENTS OR FILES SENT FROM RESOURCE LOCATIONS THROUGH SERVERS ON THE WEB TO CLIENT COMPUTER STATIONS WHICH SEND TRACKED TRANSMISSION CHARACTERISTICS DATA BACK TO SAID SERVERS

~ 00174