• Warl0k3@lemmy.world
        link
        fedilink
        arrow-up
        21
        ·
        2 months ago

        Making the word bigger doesn’t mean there’s more threads per, it just reduces the number of calls to complete some kinds of ops (and something about RAMing busses into each other and… cache locations? idk I’m sleepy)

        • ZILtoid1991@lemmy.worldOP
          link
          fedilink
          arrow-up
          5
          ·
          2 months ago

          The double deckers are an example of a ready-made solution in the original language’s standard library, the lower one is getting multithreading working through the C ABI bindings, using some 3rd party solution, all while multithreading a lot of other tasks in the application.

      • Ajen@sh.itjust.works
        link
        fedilink
        arrow-up
        3
        ·
        2 months ago

        Both decks of the bus follow the same [code] path. That’s a lot more like increasing the buffer size.

  • schema@lemmy.world
    link
    fedilink
    arrow-up
    35
    ·
    2 months ago

    You just know the bottom picture will be used in slides by professors for the next 30 years

    • ZILtoid1991@lemmy.worldOP
      link
      fedilink
      arrow-up
      5
      arrow-down
      2
      ·
      edit-2
      2 months ago

      At least it won’t be like that infamous Hungarian teacher

      cw: awful human being making awful analogies

      There was some engineering professor in Hungary, who was convinced rape did not exist and women just made up to control men, and used a shot glass to prove it, by asking his students to try to put their fingers into it while moving it around quickly. Allegedly, just before he got fired, someone took a toy gun in for that analogy, then his head got red and stopped his analogy.

        • KairuByte@lemmy.dbzer0.com
          link
          fedilink
          arrow-up
          11
          ·
          2 months ago
          Tap for spoiler

          I’m guessing the prof would say “if you cant put your finger in, rape isn’t real” then like, put the glass in his pocket or fend them off.

          Bring in a toy gun and say “let me put my finger in or I’ll shoot you” to prove that rape is real.

    • dejected_warp_core@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      2 months ago

      I mean, it’s a pretty good illustration of a deadlock. Most traffic intersections, especially 4-way stops are basically mutexes anyway.

      Jamming a circle though… that’s like deadlocking a ring buffer message queue with threaded consumers. Or something. It’s just a spectacular way to break stuff any way you slice it.

  • panda_abyss@lemmy.ca
    link
    fedilink
    arrow-up
    5
    ·
    2 months ago

    All I wanted was to call ‘read’ while I listen on a socket!

    Where did it all go so wrong!?