[haiku-development] Restartable sequences

  • From: Hrishi Hiraskar <hrishihiraskar@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Wed, 6 Mar 2019 11:58:13 +0530

Hi

Recently I stumbled upon this article about restartable sequences:
The 5-year journey to bring restartable sequences to Linux
(https://www.efficios.com/blog/2019/02/08/linux-restartable-sequences/)

TLDR;
A restartable sequence is a thread which consists of three parts viz.
setup, commit
& abort. It executes the setup and tries to execute commit, if commit
fails, it will
execute abort and restart again. This avoids the locks and it's overheads,
so the
results are pretty promising.

So, I was wondering if this is feasible to implement in Haiku. I don't have
any
knowledge about how it could be done, so I thought to share this with you.

Thanks and Regards
Hrishikesh Hiraskar

Other related posts:

  • » [haiku-development] Restartable sequences - Hrishi Hiraskar