Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Kind of like optimistic concurrency? "Lets try, we'll retry on failure".


It doesn't look like it's a full retry, atleast not for critical sections.

From what I can tell you do three things;

A) you can define a critical section which must run atomically in respect to the CPU core moves

B) if the critical section is interrupted you can define a callback or restart the section (meaning the section can be safely repeated)

C) you can define a single operation to commit (ie, updating a pointer)

You can certainly build a "retry on failure" method using this, CPU moves are rare so it's unlikely to fail the second time.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: