Pamela McANulty - Things I Wish They Told Me About The Multiprocessing Module in Python 3

Поділитися
Вставка
  • Опубліковано 27 жов 2024

КОМЕНТАРІ • 13

  • @oldmankatan7383
    @oldmankatan7383 4 роки тому +2

    Thank you for including examples and patterns in your talk!
    So many of these talks discuss the theory, but don't offer a simple practical example to help relate the principle to the practice.

  • @TimRichardsonGooglePlus
    @TimRichardsonGooglePlus 5 років тому +14

    Tips begin at 9:48

  • @michaelhackman3195
    @michaelhackman3195 3 роки тому +1

    Very valuable knowledge! Thanks Pamela!

  • @equinox4467
    @equinox4467 5 років тому +5

    Thank you for this Pamela! This is a lot clearer than most examples and talks I've seen on the subject.

  • @MattLayman
    @MattLayman 5 років тому +1

    There's a lot of great information in here. Nicely done!
    With some of the tips provided, it seemed to me like Pamela described the Actor model using multiprocessing. Wikipedia has a very dry presentation of that design style at en.wikipedia.org/wiki/Actor_model, but, the short version is that using messages and queues/mailboxes is a way to share state between processes in a way that will parallelize well.

  • @nokkonokko
    @nokkonokko 5 років тому +1

    Thanks, Pamela!

  • @SarfarazAhmad89
    @SarfarazAhmad89 4 роки тому +2

    Conferences are a million times better than "nuggets". Instead of cut-down tailored unrelate-able tech notes you get to witness first hand the other person's personal experience.

  • @bennguyen1313
    @bennguyen1313 3 роки тому +1

    Using threads vs multiprocessing... or queues vs pipes... or when to use .join have always been a source of confusion for me!
    I understand that multiprocessing's Queue will .get() one element at a time...
    But suppose you're writing several bytes worth of data in a queue (in the form of a tuple)... what happens if try to read from the queue, while the write hasn't finished the tuple? Does it block until the tuple is finished, does it return empty, or does it return the partial bytes in the tuple?

  • @minyakonga8897
    @minyakonga8897 3 роки тому

    Dont share, pass messages, Just like Golang

  • @fringefringe7282
    @fringefringe7282 3 роки тому +2

    This Pamela had a voice mutation?

    • @doc0core
      @doc0core Рік тому

      She was declared and malloc'ed as one type and type casted into another much much later.

    • @fringefringe7282
      @fringefringe7282 Рік тому

      @@doc0core 🤣