Realised Learn Python Concurrency Super Fast

Discussion in 'Requests for joint purchases' started by andie, 27 January 2024.

  1. andie

    andie Active Member

    Joined:
    30 October 2023
    Messages:
    433
    Likes Received:
    109
    Trophy Points:
    43
  2. xmem2010

    xmem2010 Active Member

    Joined:
    21 December 2023
    Messages:
    583
    Likes Received:
    78
    Trophy Points:
    28
    Gender:
    Male
    is it not like there is only Processing library for python due to gil ?
     
  3. andie

    andie Active Member

    Joined:
    30 October 2023
    Messages:
    433
    Likes Received:
    109
    Trophy Points:
    43
    Yeah, the GIL does not allow true parallelism, but you can still achieve concurrency if you use async non-blocking APIs and perform cooperative multi-tasking where you manually yield control back to the task scheduler/event loop -- which is what asyncio does in python. This is generally useful for I/O stuff: network, filesystem, etc..

    This book bundle is nice because it covers all the types of concurrency available in short and readable format.
     
    xmem2010 likes this.
  4. andie

    andie Active Member

    Joined:
    30 October 2023
    Messages:
    433
    Likes Received:
    109
    Trophy Points:
    43
    Oh, and of course you can use the `multiprocessing` and use process-based task pools for blocking stuff at the cost of IPC.
     
    xmem2010 likes this.
  5. xmem2010

    xmem2010 Active Member

    Joined:
    21 December 2023
    Messages:
    583
    Likes Received:
    78
    Trophy Points:
    28
    Gender:
    Male
    ok I am interested
     
    andie likes this.
  6. Dron

    Dron Well-Known Member
    Staff Member Organizer

    Joined:
    14 September 2019
    Messages:
    2,707
    Likes Received:
    160
    Trophy Points:
    63
    Gender:
    Male
    Location:
    USA
    I'll prepare a theme
     
    xmem2010 and andie like this.
  7. Dron

    Dron Well-Known Member
    Staff Member Organizer

    Joined:
    14 September 2019
    Messages:
    2,707
    Likes Received:
    160
    Trophy Points:
    63
    Gender:
    Male
    Location:
    USA
  • Clubbingbuy is a convenient platform for collective purchase of information products! Our service successfully solves the main task of the project-we give the possibility of collective purchases for all popular books, audio and video tutorials, seminars, programs, scripts, databases, templates and themes. The purchase will be cheaper than the full cost several times. New knowledge will cost no more than a Cup of coffee. Get the maximum benefit for the minimum money!