Method and system to share circular buffer without using locking mechanism

   
   

A software buffer is implemented without using notoriously slow locking mechanisms by employing a so-called atomic microprocessor operation to increment a counter tracking the total number of messages inserted into the buffer by various processes. In this manner, a unique slot is guaranteed to be assigned to each respective message to be inserted. Additionally, a count of the total number of removed messages is used to handle situations where two messages are assigned the same slot due to buffer overflow.

Een softwarebuffer wordt uitgevoerd zonder langzame sluitmechanismen algemeen bekend te gebruiken door een zogenaamde atoommicroprocessorverrichting aan te wenden om een teller te verhogen die het totale aantal berichten volgt die in de buffer door diverse processen worden opgenomen. Op deze wijze, is een unieke groef gewaarborgd om aan elk respectief op te nemen bericht worden toegewezen. Bovendien, wordt een telling van het totale aantal verwijderde berichten gebruikt om situaties te behandelen waar twee berichten de zelfde groef toe te schrijven aan bufferoverstroming worden toegewezen.

 
Web www.patentalert.com

< Selecting a page description language for a printer driver

< User proximity sensor and signal processing circuitry for determining whether to power a computer on or off

> Flame retardant reinforced polyamide resin composition

> S-nitrosothiols as agents for the treatment of circulatory dysfunctions

~ 00136