• kunaltyagi@programming.dev
    link
    fedilink
    English
    arrow-up
    2
    ·
    10 months ago

    Which language? Usually there’s a thread pool where multiple tasks are run in parallel. CPython is a special case due to gil, but we have pypy which has actual parallelism

    • vext01@lemmy.sdf.org
      link
      fedilink
      English
      arrow-up
      1
      ·
      10 months ago

      I’ve only ever used it in those lua microcontrollers and in Rust with the async keyword.

      In lua I doubt they use proper threading due to the GIL. Rust probably can do async with threads, but it just wasn’t fun to work with.