Giter Site home page Giter Site logo

Comments (4)

franz1981 avatar franz1981 commented on June 2, 2024

Most data structures provide a fail fast variant that do not block while performing insertion (not even compare and set retries). It is what you mean?

See

public final int failFastOffer(final E e)

While others still provide waitFree (bounded to population) alternatives (but still to be demonstrated), see xadd mpmc/mpsc xadd q offers.

from jctools.

jwaterson avatar jwaterson commented on June 2, 2024

Just a couple of questions if you don't mind @franz1981 :

  1. Instead of blocking, a write might fail and optionally be reattempted? Can potential failure be avoided somehow?
  2. Would MpscArrayQueue for example achieve O(1) insertions and never block write access?

I'm not familiar at all with JCTools, so thank you for your patience :)

from jctools.

franz1981 avatar franz1981 commented on June 2, 2024
  1. Yep, by using the mentioned fail fast variant
  2. Same as 1

from jctools.

jwaterson avatar jwaterson commented on June 2, 2024

@franz1981, how is failure avoided entirely, sorry? Do you mean that with retries, failure can eventually be avoided?

from jctools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.