Seenthis
•
 
Identifiants personnels
  • [mot de passe oublié ?]

 
  • #p
  • #python
RSS: #python’s

#python’s

  • @hackernoon
    Hacker Noon @hackernoon CC BY-SA 5/08/2018

    A simple introduction to #python’s #asyncio
    ▻https://hackernoon.com/a-simple-introduction-to-pythons-asyncio-595d9c9ecf8c?source=rss----3a81

    https://cdn-images-1.medium.com/max/1024/1*R4HzblupF0U1sgfCqH9SUg.png

    This is a no-buzzword first principles introduction to the asyncio library in Python.If you’ve come here, it is likely that you have heard of words such as asynchronous, #concurrency and parallelism. Before we start off with asyncio, lets quickly get some basic things about these words right (via examples), so that we have a solid foundation to build this upon.Concurrency is like having two threads running on a single core CPU. Instructions from each thread could be interleaved, but at any given time, only one of the two threads is actively making progress.Parallelism is like having two threads running simultaneously on different cores of a multi-core CPU.It is important to note that parallelism implies concurrency but not the other way round.Asynchronous is a higher level #programming (...)

    #python3

    Hacker Noon @hackernoon CC BY-SA
    Écrire un commentaire