Performing Asynchronous I/O Bound Operations (Jeffrey Richter)

Поделиться
HTML-код
  • Опубликовано: 3 ноя 2024

Комментарии • 19

  • @spsmith1965
    @spsmith1965 Год назад +3

    Many years ago I worked at a company that sold a FTP-like application for mainframe datacenters. It ran on all popular versions of *nix and Windows. The Windows app was the slowest and used the most CPU. I refactored the Windows app to use async IO, overlapped IO and IO competition ports. After the refactor, the Windows app became the best performing (could completely saturated the network), and had the lowest CPU usage (almost undetectable). I was shocked. It was amazing. These technologies are the most amazing and most underappreciated APIs in Windows.

  • @sach2372
    @sach2372 4 года назад +15

    40:56 Elevator pitch
    Async await allow you to have sequential programming model, for writing code that performs I/O operations without blocking any threads, thereby allowing you to create more responsive and scalable software.

  • @alekomrisxane
    @alekomrisxane Год назад +1

    This was fantastic explanation!!!

  • @Chiramisudo
    @Chiramisudo 4 года назад +5

    It really bothers me when tech talks are uploaded at anything less than 720p at a minimum. This is half as many pixels. Does not look great on my 4k monitor. 😣
    Even so, content-wise, excellent. Thanks for posting!

  • @Nitishkatare
    @Nitishkatare 4 года назад

    This videos explained the Async/Await in details

  • @aqshinn
    @aqshinn 7 лет назад +4

    Excellent!

  • @leahnjr
    @leahnjr 10 месяцев назад

    Excellent

  • @puyadaravi3109
    @puyadaravi3109 2 года назад +3

    13:30 What does it mean for a DLL (which is a file) to be notified?

    • @HandE2Go
      @HandE2Go Год назад +1

      A DLL is required to have a function called DllMain, which takes a DWORD parameter called dwReason (u can call it whatever u want).. when a dll is loaded (Loadlibrary), the Dllmain function is called first with dwReason == DLL_PROCESS_ATTACH. when unloaded (edit: with FreeLibrary), it's called with DLL_PROCESS_DETACH. the dll author will put some init code in the process_attach case and cleanup code in the detach case.

    • @puyadaravi3109
      @puyadaravi3109 Год назад +1

      @@HandE2Go Thank you for the explanation! :)
      It seems that the notification mentioned at 13:30 happens after the DLL is already loaded. So, is there another function for handling notifications? Edit: it seems the notification handlers are called DLL_THREAD_ATTACH and DLL_THREAD_DETACH

  • @uttamsuthar9940
    @uttamsuthar9940 5 лет назад +2

    Really awesome... Must watch for programmer

    • @garryiglesias4074
      @garryiglesias4074 4 года назад +2

      I stand corrected, I was going to recommend it to my gardener friend. Thank you.

  • @r1jsheth
    @r1jsheth 3 года назад +1

    Brilliant.

  • @focl2003
    @focl2003 6 лет назад +3

    Great!

  • @francistchatchoua2308
    @francistchatchoua2308 7 лет назад +2

    Brillant

  • @douggale5962
    @douggale5962 Год назад +1

    Threads are only atrocious crap on Windows. On every other OS, creating a thread is nearly zero cost.