home.social

#futex — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #futex, aggregated by home.social.

  1. mutex vs atomic<bool>

    Сравним разные варианты реализации блокировок с точки зрения накладных расходов. mutex, ptr, atomic в нескольких вариантах. Рассматриваем случай без контеншена.

    habr.com/ru/articles/1000192/

    #atomic #mutex #futex

  2. ""The name sure sounds like “mutex”, and that is where the name comes from: “fast, user space mutex”. But, it isn’t really, it’s a building block for concurrency primitives that ushered in a modern world of concurrent performance […]

    t was immediately clear that the futex was a huge improvement in highly concurrent environments. Just in that original paper, their tests with 1000 parallel tasks ran 20-120 times faster than sysv locks..🤯

    Needless to say, other common operating systems followed suit, including Windows in 2012 and macOS by 2016.

    These days, any good locking primitive is going to be based on a futex. […]""

    h4x0r.org/futex/

    #Linux #LinuxKernel #Kernel #Futex

  3. 🎉 Surprise! 🎉 Another poorly disguised #advertisement for a book club that's so riveting even its own authors remain a mystery. 🤔 In a shocking twist, the #futex isn't a magical cure for all #programming woes, and the book is as useful as a unicycling octopus in a synchronized swimming competition. 🐙🚴‍♀️
    h4x0r.org/futex/ #bookclub #humor #unicyclingoctopus #HackerNews #ngated

  4. Бинарные семафоры на futex через parking_lot_core

    Привет, Харб! Сегодня рассмотрим, как реализовать собственный бинарный семафор на основе futex и библиотеки parking_lot_core .

    habr.com/ru/companies/otus/art

    #rust #parking_lot_core #parking_lot #futex #AtomicU32 #SpinWait

  5. Бинарные семафоры на futex через parking_lot_core

    Привет, Харб! Сегодня рассмотрим, как реализовать собственный бинарный семафор на основе futex и библиотеки parking_lot_core .

    habr.com/ru/companies/otus/art

    #rust #parking_lot_core #parking_lot #futex #AtomicU32 #SpinWait

  6. Бинарные семафоры на futex через parking_lot_core

    Привет, Харб! Сегодня рассмотрим, как реализовать собственный бинарный семафор на основе futex и библиотеки parking_lot_core .

    habr.com/ru/companies/otus/art

    #rust #parking_lot_core #parking_lot #futex #AtomicU32 #SpinWait

  7. Бинарные семафоры на futex через parking_lot_core

    Привет, Харб! Сегодня рассмотрим, как реализовать собственный бинарный семафор на основе futex и библиотеки parking_lot_core .

    habr.com/ru/companies/otus/art

    #rust #parking_lot_core #parking_lot #futex #AtomicU32 #SpinWait

  8. Some brave soul decided to reinvent the wheel by building their own #mutex in C, because, apparently, mastering pre-existing solutions just wasn't challenging (or fun) enough. 🤦‍♂️ Instead of taking a nice walk outside, they've chosen to dance with futexes, as if Linux needed more accidental 'optimizations.' 🧐🔧
    blog.fredrb.com/2025/06/02/fut #reinventthewheel #Cprogramming #futex #Linuxoptimization #codinghumor #HackerNews #ngated

  9. [Перевод] Самые быстрые мьютексы

    Cosmopolitan Libc хорошо известна своим « полиглотным жирным бинарным » хаком, который позволяем исполняемым файлам запускаться на шести операционных системах для AMD64/ARM64. Вас может удивить, что при этом она может быть лучше С‑библиотекой для вашего продакшена. Чтобы продемонстрировать это, давайте сравним библиотеку мьютексов Cosmo с другими платформами. Мы напишем простой тест, который создает 30 потоков, увеличивающих одно и то же число 100 000 раз. Это поможет проверить, насколько хорошо реализация мьютексов справляется с задачей при интенсивном использовании.

    habr.com/ru/companies/beget/ar

    #mutex #futex #c++ #cosmopolitan_libc

  10. "Programming error in your favor" - we were surprised this morning to find our nightly benchmark runtime went from about 7h to 3h.

    It turns out we had introduced a bug in a call to `futex` such that we were always spinning forever waiting for a latch to open instead of ever blocking on the `futex`.

    Spinning a bit before blocking is a common optimization for such constructs, but in my experience isn't often such a clear win.

    github.com/shadow/shadow/pull/

    #programming #futex

  11. ICYMI 👉 Over the past 18 months, we've been on a roller-coaster ride developing #futex2, a new set of kernel system calls. As part of this effort, the futex_waitv() syscall has now landed in #Linux 5.16. But what exactly is #futex? Let's dive in! col.la/futex #coding

  12. Over the past 18 months, we have been on a roller-coaster ride developing #futex2, a new set of kernel system calls. As part of this effort, the futex_waitv() syscall has now landed in #Linux 5.16. But what exactly is #futex? Let's dive in! col.la/futex #coding

  13. Released earlier this month, kernel 5.16 is full of great features, including two that had been in development for some time by our kernel team: the new #futex syscall & the new #fanotify event! Here's a look at our contributions: col.la/lk516 #futex2 #embedded

  14. Video: Presented last month at #lca2021, André Almeida gives an update on futex2, a work in progress system call to replace the current futex implementation in the #Linux kernel col.la/lcafx #OpenSource #Linux #Futex #Proton

  15. #lca2021: André Almeida provides an update on the current status of futex2 - Wine & Proton now have support for futex2! #OpenSource #Linux #Futex #Proton

  16. Video: Presented at #OSSummit, André Almeida discusses futex2(), a new version of the system call that can enable not only more complex use cases, but also key performance improvements inside the #Linux kernel. col.la/anfsc #SoftwareDevelopment #Coding #Futex #lfelc

  17. One final talk to end #OSSummit & #lfelc EU 2020! Join us at 19:30 GMT today as André Almeida presents "A New Futex2() System Call". sched.co/eCBF #Linux #OpenSource #Futex