On Mon, 19 Feb 2024 23:21:49 -0600, Peter Farley <[email protected]> 
wrote:

>The only drawback is that if I ever need to meld two heaps 
>the meld logic would have to pick the largest heap counter 
>as the result counter value in the merged heap. 

Merging heaps would require that you maintain a single counter because multiple 
separate counters are not coordinated sequencing. In other words, you don't 
know if 7 on heap 1 is before / after in time of 5 on heap 2.

Depending on your needs, you could serialize the single counter between all 
heaps using CS, CSD, PLO, ENQ, coupling facility or something I haven't 
mentioned. Instead of the counter being in the heap definition, you would each 
one point to a common shared counter.  

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to