• Home
  • Blog
  • About
kenneth kiraly

Ring buffers and mirrored memory

12/1/2012

0 Comments

 
I ran across a useful article on how to use virtual memory tricks to mirror ring buffer memory.  This allows one to virtually concatenate non-contiguous memory (which can come in very handy at times).  Part 2 of the article discusses the implementation of the ring buffer on top of the mirrored memory allocator.

You can find the mirrored queue code referenced in the article on github.  (Note that one of the commenters also points out an optimized POSIX-based implementation that is posted on Wikipedia.)
One Ring to Rule them All
0 Comments



Leave a Reply.


    Author

    Kenneth Kiraly


    Archives

    June 2013
    December 2012
    November 2012
    October 2012
    September 2012
    August 2012
    July 2012


    Categories

    All
    Computing
    Cool
    Interesting
    Kindle


    RSS Feed




Content copyright (c) 2004-2021 Kenneth Kiraly
All Rights Reserved.