Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4004396
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T08:16:06+00:00 2026-05-20T08:16:06+00:00

Is there a lock-free & thread-safe data structure that implements IList? Naturally by lock-free

  • 0

Is there a lock-free & thread-safe data structure that implements IList?

Naturally by lock-free I mean an implementation that makes no use of locking primitives in .NET but rather uses interlocked operations / atomic operations to achieve thread safety…
There isn’t one, apparently under the concurrent data structures…

Has anyone seen one floating around?

I’ve seen a java one implemented in amino-cbbs, called LockFreeVector but nothing for .NET so far.
Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T08:16:07+00:00Added an answer on May 20, 2026 at 8:16 am

    Well, I couldn’t find such a class anywhere; so I gave it a shot.

    The source code for my ConcurrentList<T> class is available on GitHub.

    It is lock-free, thread-safe (I think, based on my unit tests), and implements IList<T>.

    It does not support Insert, RemoveAt/Remove, or Clear.

    I was pleased to discover that my implementation (which I came up with independently) is very similar to that of a data structure published by some well-respected minds within the world of software.

    For a fairly brief discussion of the implementation itself, see my recent blog post about it.

    At the moment, it is not documented at all, which is kind of bad considering how “tricky” some of the code is 🙁

    And by all means, rip me a new one if you take a look and find bugs or other issues.

    Anyway, it might be worth your time to check it out. If you do, let me know what you think.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

UPDATED: Is there a thread-safe, lock-free and available on all Linux distros increment function
Is there a library that implements lock-free algorithms(queue, linked list and others) written in
Possible Duplicate: Is there a production ready lock-free queue or hash implementation in C++
Is there any C++ implementation (source codes) of optmistic approach to lock-free FIFO queues
I read somewhere (can't find the page anymore) that lock free data structures are
Does .NET 4 Parallel Extensions include an implementation of a lock-free Producer/Consumer queue? Is
The Story There is a writer thread, periodically gathering data from somewhere (in real-time,
As MSDN says ConcurrentDictionary<TKey, TValue> Class Represents a thread-safe collection of key-value pairs that
Does anybody know of a fully thread-safe shared_ptr implementation? E.g. boost implementation of shared_ptr
Is there a way to lock a row in the SQL 2005-2008 database without

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.