LibreTechni.ca
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
ZILtoid1991@lemmy.world to Programmer Humor@programming.dev · 21 hours ago

Multithreading

lemmy.world

message-square
35
fedilink
604

Multithreading

lemmy.world

ZILtoid1991@lemmy.world to Programmer Humor@programming.dev · 21 hours ago
message-square
35
fedilink
  • Warl0k3@lemmy.world
    link
    fedilink
    arrow-up
    88
    ·
    21 hours ago

    hang on, that first image is everything on a single thread…

    • Harvey656@lemmy.world
      link
      fedilink
      arrow-up
      6
      ·
      13 hours ago

      We’ve been swindled, perhaps even bamboozled!

    • ZILtoid1991@lemmy.worldOP
      link
      fedilink
      arrow-up
      44
      ·
      20 hours ago

      Nah, those are double deckers.

      • Ajen@sh.itjust.works
        link
        fedilink
        arrow-up
        2
        ·
        5 hours ago

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

      • Warl0k3@lemmy.world
        link
        fedilink
        arrow-up
        24
        ·
        edit-2
        20 hours 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
          8
          ·
          19 hours 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.

          • ozymandias@lemmy.dbzer0.com
            link
            fedilink
            arrow-up
            3
            ·
            12 hours ago

            nah, then each bus’s beginning and end would be restarting the whole program… the first picture should be a five lane freeway at rush hour

          • Warl0k3@lemmy.world
            link
            fedilink
            arrow-up
            5
            ·
            19 hours ago

            Yeah, I can live with that. Well done!

      • JeeBaiChow@lemmy.world
        link
        fedilink
        arrow-up
        10
        ·
        19 hours ago

        You sure they’re not dwords on a single bus?

      • sunbeam60@feddit.uk
        link
        fedilink
        arrow-up
        2
        ·
        16 hours ago

        Hyperbus!

    • SpaceNoodle@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      17 hours ago

      Each bus is a timeslice

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1.55K users / day
  • 5.34K users / week
  • 9.11K users / month
  • 9.51K users / 6 months
  • 1 local subscriber
  • 27.5K subscribers
  • 460 Posts
  • 5.33K Comments
  • Modlog
  • mods:
  • adr1an@programming.dev
  • Feyter@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org