Learning concurrency in Python :: speed up your Python code with clean, readable, and advanced concurrency techniques /
Practically and deeply understand concurrency in Python to write efficient programs About This Book Build highly efficient, robust, and concurrent applications Work through practical examples that will help you address the challenges of writing concurrent code Improve the overall speed of execution...
Gespeichert in:
1. Verfasser: | |
---|---|
Format: | Elektronisch E-Book |
Sprache: | English |
Veröffentlicht: |
Birmingham, UK :
Packt Publishing,
2017.
|
Schlagworte: | |
Online-Zugang: | Volltext |
Zusammenfassung: | Practically and deeply understand concurrency in Python to write efficient programs About This Book Build highly efficient, robust, and concurrent applications Work through practical examples that will help you address the challenges of writing concurrent code Improve the overall speed of execution in multiprocessor and multicore systems and keep them highly available Who This Book Is For This book is for Python developers who would like to get started with concurrent programming. Readers are expected to have a working knowledge of the Python language, as this book will build on these fundamentals concepts. What You Will Learn Explore the concept of threading and multiprocessing in Python Understand concurrency with threads Manage exceptions in child threads Handle the hardest part in a concurrent system - shared resources Build concurrent systems with Communicating Sequential Processes (CSP) Maintain all concurrent systems and master them Apply reactive programming to build concurrent systems Use GPU to solve specific problems In Detail Python is a very high level, general purpose language that is utilized heavily in fields such as data science and research, as well as being one of the top choices for general purpose programming for programmers around the world. It features a wide number of powerful, high and low-level libraries and frameworks that complement its delightful syntax and enable Python programmers to create. This book introduces some of the most popular libraries and frameworks and goes in-depth into how you can leverage these libraries for your own high-concurrent, highly-performant Python programs. We'll cover the fundamental concepts of concurrency needed to be able to write your own concurrent and parallel software systems in Python. The book will guide you down the path to mastering Python concurrency, giving you all the necessary hardware and theoretical knowledge. We'll cover concepts such as debugging and exception handling as well as some of the most popular libraries and frameworks that allow you to create event-driven and reactive systems. By the end of the book, you'll have learned the techniques to write incredibly efficient concurrent systems that follow best practices. Style and approach This easy-to-follow guide teaches you new practices and techniques to optimize your code, and then moves toward more advanced ways to effectively write efficient Python code. Small and simple practical examples will help you test... |
Beschreibung: | 1 online resource (1 volume) : illustrations |
ISBN: | 9781787283169 178728316X |
Internformat
MARC
LEADER | 00000cam a2200000 i 4500 | ||
---|---|---|---|
001 | ZDB-4-EBA-on1004395221 | ||
003 | OCoLC | ||
005 | 20241004212047.0 | ||
006 | m o d | ||
007 | cr unu|||||||| | ||
008 | 170920s2017 enka o 000 0 eng d | ||
040 | |a UMI |b eng |e rda |e pn |c UMI |d TOH |d STF |d N$T |d EBLCP |d IDEBK |d NLE |d MERUC |d OCLCF |d YDX |d COO |d CEF |d KSU |d OCLCQ |d UAB |d OCLCQ |d OCLCO |d OCLCQ |d OCLCO |d OCLCL |d DXU | ||
019 | |a 1001783368 |a 1001980026 |a 1001999546 | ||
020 | |a 9781787283169 | ||
020 | |a 178728316X | ||
020 | |z 9781787285378 | ||
020 | |z 1787285375 | ||
035 | |a (OCoLC)1004395221 |z (OCoLC)1001783368 |z (OCoLC)1001980026 |z (OCoLC)1001999546 | ||
037 | |a CL0500000892 |b Safari Books Online | ||
050 | 4 | |a QA76.73.P98 | |
072 | 7 | |a COM |x 051360 |2 bisacsh | |
082 | 7 | |a 005.13/3 |2 23 | |
049 | |a MAIN | ||
100 | 1 | |a Forbes, Elliot, |e author. | |
245 | 1 | 0 | |a Learning concurrency in Python : |b speed up your Python code with clean, readable, and advanced concurrency techniques / |c Elliot Forbes. |
264 | 1 | |a Birmingham, UK : |b Packt Publishing, |c 2017. | |
300 | |a 1 online resource (1 volume) : |b illustrations | ||
336 | |a text |b txt |2 rdacontent | ||
337 | |a computer |b c |2 rdamedia | ||
338 | |a online resource |b cr |2 rdacarrier | ||
588 | 0 | |a Online resource; title from title page (Safari, viewed September 19, 2017). | |
505 | 0 | |a Cover; Copyright; Credits; About the Author; About the Reviewer; www.PacktPub.com; Customer Feedback; Table of Contents; Preface; Chapter 1: Speed It Up!; History of concurrency; Threads and multithreading; What is a thread?; Types of threads; What is multithreading?; Processes; Properties of processes; Multiprocessing; Event-driven programming; Turtle; Breaking it down; Reactive programming; ReactiveX -- RxPy; Breaking it down; GPU programming; PyCUDA; OpenCL; Theano; The limitations of Python; Jython; IronPython; Why should we use Python?; Concurrent image download; Sequential download. | |
505 | 8 | |a Breaking it downConcurrent download; Breaking it down; Improving number crunching with multiprocessing; Sequential prime factorization; Breaking it down; Concurrent prime factorization; Breaking it down; Summary; Chapter 2: Parallelize It; Understanding concurrency; Properties of concurrent systems; I/O bottlenecks; Understanding parallelism; CPU-bound bottlenecks; How do they work on a CPU?; Single-core CPUs; Clock rate; Martelli model of scalability; Time-sharing -- the task scheduler; Multi-core processors; System architecture styles; SISD; SIMD; MISD; MIMD. | |
505 | 8 | |a Computer memory architecture stylesUMA; NUMA; Summary; Chapter 3: Life of a Thread; Threads in Python; Thread state; State flow chart; Python example of thread state; Breaking it down; Different types of threads; POSIX threads; Windows threads; The ways to start a thread; Starting a thread; Inheriting from the thread class; Breaking it down; Forking; Example; Breaking it down; Daemonizing a thread; Example; Breaking it down; Handling threads in Python; Starting loads of threads; Example; Breaking it down; Slowing down programs using threads; Example; Breaking it down. | |
505 | 8 | |a Getting the total number of active threadsExample; Breaking it down; Getting the current thread; Example; Breaking it down; Main thread; Example; Breaking it down; Enumerating all threads; Example; Breaking it down; Identifying threads; Example; Breakdown; Ending a thread; Best practice in stopping threads; Example; Output; Orphan processes; How does the operating system handle threads; Creating processes versus threads; Example; Breaking it down; Multithreading models; One-to-one thread mapping; Many-to-one; Many-to-many; Summary; Chapter 4: Synchronization between Threads. | |
505 | 8 | |a Synchronization between threadsThe Dining Philosophers; Example; Output; Race conditions; Process execution sequence; The solution; Critical sections; Filesystem; Life-critical systems; Shared resources and data races; The join method; Breaking it down; Putting it together; Locks; Example; Breaking it down; RLocks; Example; Breaking it down; Output; RLocks versus regular locks; Condition; Definition; Example; Our publisher; Our subscriber; Kicking it off; The results; Semaphores; Class definition; Example; The TicketSeller class; Output; Thread race; Bounded semaphores; Events; Example. | |
520 | |a Practically and deeply understand concurrency in Python to write efficient programs About This Book Build highly efficient, robust, and concurrent applications Work through practical examples that will help you address the challenges of writing concurrent code Improve the overall speed of execution in multiprocessor and multicore systems and keep them highly available Who This Book Is For This book is for Python developers who would like to get started with concurrent programming. Readers are expected to have a working knowledge of the Python language, as this book will build on these fundamentals concepts. What You Will Learn Explore the concept of threading and multiprocessing in Python Understand concurrency with threads Manage exceptions in child threads Handle the hardest part in a concurrent system - shared resources Build concurrent systems with Communicating Sequential Processes (CSP) Maintain all concurrent systems and master them Apply reactive programming to build concurrent systems Use GPU to solve specific problems In Detail Python is a very high level, general purpose language that is utilized heavily in fields such as data science and research, as well as being one of the top choices for general purpose programming for programmers around the world. It features a wide number of powerful, high and low-level libraries and frameworks that complement its delightful syntax and enable Python programmers to create. This book introduces some of the most popular libraries and frameworks and goes in-depth into how you can leverage these libraries for your own high-concurrent, highly-performant Python programs. We'll cover the fundamental concepts of concurrency needed to be able to write your own concurrent and parallel software systems in Python. The book will guide you down the path to mastering Python concurrency, giving you all the necessary hardware and theoretical knowledge. We'll cover concepts such as debugging and exception handling as well as some of the most popular libraries and frameworks that allow you to create event-driven and reactive systems. By the end of the book, you'll have learned the techniques to write incredibly efficient concurrent systems that follow best practices. Style and approach This easy-to-follow guide teaches you new practices and techniques to optimize your code, and then moves toward more advanced ways to effectively write efficient Python code. Small and simple practical examples will help you test... | ||
650 | 0 | |a Python (Computer program language) |0 http://id.loc.gov/authorities/subjects/sh96008834 | |
650 | 0 | |a Application software |x Development. |0 http://id.loc.gov/authorities/subjects/sh95009362 | |
650 | 6 | |a Python (Langage de programmation) | |
650 | 6 | |a Logiciels d'application |x Développement. | |
650 | 7 | |a COMPUTERS |x Programming Languages |x Python. |2 bisacsh | |
650 | 7 | |a Application software |x Development |2 fast | |
650 | 7 | |a Python (Computer program language) |2 fast | |
758 | |i has work: |a Learning Concurrency in Python (Text) |1 https://id.oclc.org/worldcat/entity/E39PD3FQgkRKQ9XCVdK6cChM4C |4 https://id.oclc.org/worldcat/ontology/hasWork | ||
776 | 0 | 8 | |i Print version: |a Forbes, Elliot. |t Learning Concurrency in Python. |d Birmingham : Packt Publishing, ©2017 |
856 | 4 | 0 | |l FWS01 |p ZDB-4-EBA |q FWS_PDA_EBA |u https://search.ebscohost.com/login.aspx?direct=true&scope=site&db=nlebk&AN=1577485 |3 Volltext |
938 | |a EBL - Ebook Library |b EBLB |n EBL4980881 | ||
938 | |a EBSCOhost |b EBSC |n 1577485 | ||
938 | |a ProQuest MyiLibrary Digital eBook Collection |b IDEB |n cis38746395 | ||
938 | |a YBP Library Services |b YANK |n 14755237 | ||
994 | |a 92 |b GEBAY | ||
912 | |a ZDB-4-EBA | ||
049 | |a DE-863 |
Datensatz im Suchindex
DE-BY-FWS_katkey | ZDB-4-EBA-on1004395221 |
---|---|
_version_ | 1816882400719798272 |
adam_text | |
any_adam_object | |
author | Forbes, Elliot |
author_facet | Forbes, Elliot |
author_role | aut |
author_sort | Forbes, Elliot |
author_variant | e f ef |
building | Verbundindex |
bvnumber | localFWS |
callnumber-first | Q - Science |
callnumber-label | QA76 |
callnumber-raw | QA76.73.P98 |
callnumber-search | QA76.73.P98 |
callnumber-sort | QA 276.73 P98 |
callnumber-subject | QA - Mathematics |
collection | ZDB-4-EBA |
contents | Cover; Copyright; Credits; About the Author; About the Reviewer; www.PacktPub.com; Customer Feedback; Table of Contents; Preface; Chapter 1: Speed It Up!; History of concurrency; Threads and multithreading; What is a thread?; Types of threads; What is multithreading?; Processes; Properties of processes; Multiprocessing; Event-driven programming; Turtle; Breaking it down; Reactive programming; ReactiveX -- RxPy; Breaking it down; GPU programming; PyCUDA; OpenCL; Theano; The limitations of Python; Jython; IronPython; Why should we use Python?; Concurrent image download; Sequential download. Breaking it downConcurrent download; Breaking it down; Improving number crunching with multiprocessing; Sequential prime factorization; Breaking it down; Concurrent prime factorization; Breaking it down; Summary; Chapter 2: Parallelize It; Understanding concurrency; Properties of concurrent systems; I/O bottlenecks; Understanding parallelism; CPU-bound bottlenecks; How do they work on a CPU?; Single-core CPUs; Clock rate; Martelli model of scalability; Time-sharing -- the task scheduler; Multi-core processors; System architecture styles; SISD; SIMD; MISD; MIMD. Computer memory architecture stylesUMA; NUMA; Summary; Chapter 3: Life of a Thread; Threads in Python; Thread state; State flow chart; Python example of thread state; Breaking it down; Different types of threads; POSIX threads; Windows threads; The ways to start a thread; Starting a thread; Inheriting from the thread class; Breaking it down; Forking; Example; Breaking it down; Daemonizing a thread; Example; Breaking it down; Handling threads in Python; Starting loads of threads; Example; Breaking it down; Slowing down programs using threads; Example; Breaking it down. Getting the total number of active threadsExample; Breaking it down; Getting the current thread; Example; Breaking it down; Main thread; Example; Breaking it down; Enumerating all threads; Example; Breaking it down; Identifying threads; Example; Breakdown; Ending a thread; Best practice in stopping threads; Example; Output; Orphan processes; How does the operating system handle threads; Creating processes versus threads; Example; Breaking it down; Multithreading models; One-to-one thread mapping; Many-to-one; Many-to-many; Summary; Chapter 4: Synchronization between Threads. Synchronization between threadsThe Dining Philosophers; Example; Output; Race conditions; Process execution sequence; The solution; Critical sections; Filesystem; Life-critical systems; Shared resources and data races; The join method; Breaking it down; Putting it together; Locks; Example; Breaking it down; RLocks; Example; Breaking it down; Output; RLocks versus regular locks; Condition; Definition; Example; Our publisher; Our subscriber; Kicking it off; The results; Semaphores; Class definition; Example; The TicketSeller class; Output; Thread race; Bounded semaphores; Events; Example. |
ctrlnum | (OCoLC)1004395221 |
dewey-full | 005.13/3 |
dewey-hundreds | 000 - Computer science, information, general works |
dewey-ones | 005 - Computer programming, programs, data, security |
dewey-raw | 005.13/3 |
dewey-search | 005.13/3 |
dewey-sort | 15.13 13 |
dewey-tens | 000 - Computer science, information, general works |
discipline | Informatik |
format | Electronic eBook |
fullrecord | <?xml version="1.0" encoding="UTF-8"?><collection xmlns="http://www.loc.gov/MARC21/slim"><record><leader>07960cam a2200589 i 4500</leader><controlfield tag="001">ZDB-4-EBA-on1004395221</controlfield><controlfield tag="003">OCoLC</controlfield><controlfield tag="005">20241004212047.0</controlfield><controlfield tag="006">m o d </controlfield><controlfield tag="007">cr unu||||||||</controlfield><controlfield tag="008">170920s2017 enka o 000 0 eng d</controlfield><datafield tag="040" ind1=" " ind2=" "><subfield code="a">UMI</subfield><subfield code="b">eng</subfield><subfield code="e">rda</subfield><subfield code="e">pn</subfield><subfield code="c">UMI</subfield><subfield code="d">TOH</subfield><subfield code="d">STF</subfield><subfield code="d">N$T</subfield><subfield code="d">EBLCP</subfield><subfield code="d">IDEBK</subfield><subfield code="d">NLE</subfield><subfield code="d">MERUC</subfield><subfield code="d">OCLCF</subfield><subfield code="d">YDX</subfield><subfield code="d">COO</subfield><subfield code="d">CEF</subfield><subfield code="d">KSU</subfield><subfield code="d">OCLCQ</subfield><subfield code="d">UAB</subfield><subfield code="d">OCLCQ</subfield><subfield code="d">OCLCO</subfield><subfield code="d">OCLCQ</subfield><subfield code="d">OCLCO</subfield><subfield code="d">OCLCL</subfield><subfield code="d">DXU</subfield></datafield><datafield tag="019" ind1=" " ind2=" "><subfield code="a">1001783368</subfield><subfield code="a">1001980026</subfield><subfield code="a">1001999546</subfield></datafield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">9781787283169</subfield></datafield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">178728316X</subfield></datafield><datafield tag="020" ind1=" " ind2=" "><subfield code="z">9781787285378</subfield></datafield><datafield tag="020" ind1=" " ind2=" "><subfield code="z">1787285375</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(OCoLC)1004395221</subfield><subfield code="z">(OCoLC)1001783368</subfield><subfield code="z">(OCoLC)1001980026</subfield><subfield code="z">(OCoLC)1001999546</subfield></datafield><datafield tag="037" ind1=" " ind2=" "><subfield code="a">CL0500000892</subfield><subfield code="b">Safari Books Online</subfield></datafield><datafield tag="050" ind1=" " ind2="4"><subfield code="a">QA76.73.P98</subfield></datafield><datafield tag="072" ind1=" " ind2="7"><subfield code="a">COM</subfield><subfield code="x">051360</subfield><subfield code="2">bisacsh</subfield></datafield><datafield tag="082" ind1="7" ind2=" "><subfield code="a">005.13/3</subfield><subfield code="2">23</subfield></datafield><datafield tag="049" ind1=" " ind2=" "><subfield code="a">MAIN</subfield></datafield><datafield tag="100" ind1="1" ind2=" "><subfield code="a">Forbes, Elliot,</subfield><subfield code="e">author.</subfield></datafield><datafield tag="245" ind1="1" ind2="0"><subfield code="a">Learning concurrency in Python :</subfield><subfield code="b">speed up your Python code with clean, readable, and advanced concurrency techniques /</subfield><subfield code="c">Elliot Forbes.</subfield></datafield><datafield tag="264" ind1=" " ind2="1"><subfield code="a">Birmingham, UK :</subfield><subfield code="b">Packt Publishing,</subfield><subfield code="c">2017.</subfield></datafield><datafield tag="300" ind1=" " ind2=" "><subfield code="a">1 online resource (1 volume) :</subfield><subfield code="b">illustrations</subfield></datafield><datafield tag="336" ind1=" " ind2=" "><subfield code="a">text</subfield><subfield code="b">txt</subfield><subfield code="2">rdacontent</subfield></datafield><datafield tag="337" ind1=" " ind2=" "><subfield code="a">computer</subfield><subfield code="b">c</subfield><subfield code="2">rdamedia</subfield></datafield><datafield tag="338" ind1=" " ind2=" "><subfield code="a">online resource</subfield><subfield code="b">cr</subfield><subfield code="2">rdacarrier</subfield></datafield><datafield tag="588" ind1="0" ind2=" "><subfield code="a">Online resource; title from title page (Safari, viewed September 19, 2017).</subfield></datafield><datafield tag="505" ind1="0" ind2=" "><subfield code="a">Cover; Copyright; Credits; About the Author; About the Reviewer; www.PacktPub.com; Customer Feedback; Table of Contents; Preface; Chapter 1: Speed It Up!; History of concurrency; Threads and multithreading; What is a thread?; Types of threads; What is multithreading?; Processes; Properties of processes; Multiprocessing; Event-driven programming; Turtle; Breaking it down; Reactive programming; ReactiveX -- RxPy; Breaking it down; GPU programming; PyCUDA; OpenCL; Theano; The limitations of Python; Jython; IronPython; Why should we use Python?; Concurrent image download; Sequential download.</subfield></datafield><datafield tag="505" ind1="8" ind2=" "><subfield code="a">Breaking it downConcurrent download; Breaking it down; Improving number crunching with multiprocessing; Sequential prime factorization; Breaking it down; Concurrent prime factorization; Breaking it down; Summary; Chapter 2: Parallelize It; Understanding concurrency; Properties of concurrent systems; I/O bottlenecks; Understanding parallelism; CPU-bound bottlenecks; How do they work on a CPU?; Single-core CPUs; Clock rate; Martelli model of scalability; Time-sharing -- the task scheduler; Multi-core processors; System architecture styles; SISD; SIMD; MISD; MIMD.</subfield></datafield><datafield tag="505" ind1="8" ind2=" "><subfield code="a">Computer memory architecture stylesUMA; NUMA; Summary; Chapter 3: Life of a Thread; Threads in Python; Thread state; State flow chart; Python example of thread state; Breaking it down; Different types of threads; POSIX threads; Windows threads; The ways to start a thread; Starting a thread; Inheriting from the thread class; Breaking it down; Forking; Example; Breaking it down; Daemonizing a thread; Example; Breaking it down; Handling threads in Python; Starting loads of threads; Example; Breaking it down; Slowing down programs using threads; Example; Breaking it down.</subfield></datafield><datafield tag="505" ind1="8" ind2=" "><subfield code="a">Getting the total number of active threadsExample; Breaking it down; Getting the current thread; Example; Breaking it down; Main thread; Example; Breaking it down; Enumerating all threads; Example; Breaking it down; Identifying threads; Example; Breakdown; Ending a thread; Best practice in stopping threads; Example; Output; Orphan processes; How does the operating system handle threads; Creating processes versus threads; Example; Breaking it down; Multithreading models; One-to-one thread mapping; Many-to-one; Many-to-many; Summary; Chapter 4: Synchronization between Threads.</subfield></datafield><datafield tag="505" ind1="8" ind2=" "><subfield code="a">Synchronization between threadsThe Dining Philosophers; Example; Output; Race conditions; Process execution sequence; The solution; Critical sections; Filesystem; Life-critical systems; Shared resources and data races; The join method; Breaking it down; Putting it together; Locks; Example; Breaking it down; RLocks; Example; Breaking it down; Output; RLocks versus regular locks; Condition; Definition; Example; Our publisher; Our subscriber; Kicking it off; The results; Semaphores; Class definition; Example; The TicketSeller class; Output; Thread race; Bounded semaphores; Events; Example.</subfield></datafield><datafield tag="520" ind1=" " ind2=" "><subfield code="a">Practically and deeply understand concurrency in Python to write efficient programs About This Book Build highly efficient, robust, and concurrent applications Work through practical examples that will help you address the challenges of writing concurrent code Improve the overall speed of execution in multiprocessor and multicore systems and keep them highly available Who This Book Is For This book is for Python developers who would like to get started with concurrent programming. Readers are expected to have a working knowledge of the Python language, as this book will build on these fundamentals concepts. What You Will Learn Explore the concept of threading and multiprocessing in Python Understand concurrency with threads Manage exceptions in child threads Handle the hardest part in a concurrent system - shared resources Build concurrent systems with Communicating Sequential Processes (CSP) Maintain all concurrent systems and master them Apply reactive programming to build concurrent systems Use GPU to solve specific problems In Detail Python is a very high level, general purpose language that is utilized heavily in fields such as data science and research, as well as being one of the top choices for general purpose programming for programmers around the world. It features a wide number of powerful, high and low-level libraries and frameworks that complement its delightful syntax and enable Python programmers to create. This book introduces some of the most popular libraries and frameworks and goes in-depth into how you can leverage these libraries for your own high-concurrent, highly-performant Python programs. We'll cover the fundamental concepts of concurrency needed to be able to write your own concurrent and parallel software systems in Python. The book will guide you down the path to mastering Python concurrency, giving you all the necessary hardware and theoretical knowledge. We'll cover concepts such as debugging and exception handling as well as some of the most popular libraries and frameworks that allow you to create event-driven and reactive systems. By the end of the book, you'll have learned the techniques to write incredibly efficient concurrent systems that follow best practices. Style and approach This easy-to-follow guide teaches you new practices and techniques to optimize your code, and then moves toward more advanced ways to effectively write efficient Python code. Small and simple practical examples will help you test...</subfield></datafield><datafield tag="650" ind1=" " ind2="0"><subfield code="a">Python (Computer program language)</subfield><subfield code="0">http://id.loc.gov/authorities/subjects/sh96008834</subfield></datafield><datafield tag="650" ind1=" " ind2="0"><subfield code="a">Application software</subfield><subfield code="x">Development.</subfield><subfield code="0">http://id.loc.gov/authorities/subjects/sh95009362</subfield></datafield><datafield tag="650" ind1=" " ind2="6"><subfield code="a">Python (Langage de programmation)</subfield></datafield><datafield tag="650" ind1=" " ind2="6"><subfield code="a">Logiciels d'application</subfield><subfield code="x">Développement.</subfield></datafield><datafield tag="650" ind1=" " ind2="7"><subfield code="a">COMPUTERS</subfield><subfield code="x">Programming Languages</subfield><subfield code="x">Python.</subfield><subfield code="2">bisacsh</subfield></datafield><datafield tag="650" ind1=" " ind2="7"><subfield code="a">Application software</subfield><subfield code="x">Development</subfield><subfield code="2">fast</subfield></datafield><datafield tag="650" ind1=" " ind2="7"><subfield code="a">Python (Computer program language)</subfield><subfield code="2">fast</subfield></datafield><datafield tag="758" ind1=" " ind2=" "><subfield code="i">has work:</subfield><subfield code="a">Learning Concurrency in Python (Text)</subfield><subfield code="1">https://id.oclc.org/worldcat/entity/E39PD3FQgkRKQ9XCVdK6cChM4C</subfield><subfield code="4">https://id.oclc.org/worldcat/ontology/hasWork</subfield></datafield><datafield tag="776" ind1="0" ind2="8"><subfield code="i">Print version:</subfield><subfield code="a">Forbes, Elliot.</subfield><subfield code="t">Learning Concurrency in Python.</subfield><subfield code="d">Birmingham : Packt Publishing, ©2017</subfield></datafield><datafield tag="856" ind1="4" ind2="0"><subfield code="l">FWS01</subfield><subfield code="p">ZDB-4-EBA</subfield><subfield code="q">FWS_PDA_EBA</subfield><subfield code="u">https://search.ebscohost.com/login.aspx?direct=true&scope=site&db=nlebk&AN=1577485</subfield><subfield code="3">Volltext</subfield></datafield><datafield tag="938" ind1=" " ind2=" "><subfield code="a">EBL - Ebook Library</subfield><subfield code="b">EBLB</subfield><subfield code="n">EBL4980881</subfield></datafield><datafield tag="938" ind1=" " ind2=" "><subfield code="a">EBSCOhost</subfield><subfield code="b">EBSC</subfield><subfield code="n">1577485</subfield></datafield><datafield tag="938" ind1=" " ind2=" "><subfield code="a">ProQuest MyiLibrary Digital eBook Collection</subfield><subfield code="b">IDEB</subfield><subfield code="n">cis38746395</subfield></datafield><datafield tag="938" ind1=" " ind2=" "><subfield code="a">YBP Library Services</subfield><subfield code="b">YANK</subfield><subfield code="n">14755237</subfield></datafield><datafield tag="994" ind1=" " ind2=" "><subfield code="a">92</subfield><subfield code="b">GEBAY</subfield></datafield><datafield tag="912" ind1=" " ind2=" "><subfield code="a">ZDB-4-EBA</subfield></datafield><datafield tag="049" ind1=" " ind2=" "><subfield code="a">DE-863</subfield></datafield></record></collection> |
id | ZDB-4-EBA-on1004395221 |
illustrated | Illustrated |
indexdate | 2024-11-27T13:28:01Z |
institution | BVB |
isbn | 9781787283169 178728316X |
language | English |
oclc_num | 1004395221 |
open_access_boolean | |
owner | MAIN DE-863 DE-BY-FWS |
owner_facet | MAIN DE-863 DE-BY-FWS |
physical | 1 online resource (1 volume) : illustrations |
psigel | ZDB-4-EBA |
publishDate | 2017 |
publishDateSearch | 2017 |
publishDateSort | 2017 |
publisher | Packt Publishing, |
record_format | marc |
spelling | Forbes, Elliot, author. Learning concurrency in Python : speed up your Python code with clean, readable, and advanced concurrency techniques / Elliot Forbes. Birmingham, UK : Packt Publishing, 2017. 1 online resource (1 volume) : illustrations text txt rdacontent computer c rdamedia online resource cr rdacarrier Online resource; title from title page (Safari, viewed September 19, 2017). Cover; Copyright; Credits; About the Author; About the Reviewer; www.PacktPub.com; Customer Feedback; Table of Contents; Preface; Chapter 1: Speed It Up!; History of concurrency; Threads and multithreading; What is a thread?; Types of threads; What is multithreading?; Processes; Properties of processes; Multiprocessing; Event-driven programming; Turtle; Breaking it down; Reactive programming; ReactiveX -- RxPy; Breaking it down; GPU programming; PyCUDA; OpenCL; Theano; The limitations of Python; Jython; IronPython; Why should we use Python?; Concurrent image download; Sequential download. Breaking it downConcurrent download; Breaking it down; Improving number crunching with multiprocessing; Sequential prime factorization; Breaking it down; Concurrent prime factorization; Breaking it down; Summary; Chapter 2: Parallelize It; Understanding concurrency; Properties of concurrent systems; I/O bottlenecks; Understanding parallelism; CPU-bound bottlenecks; How do they work on a CPU?; Single-core CPUs; Clock rate; Martelli model of scalability; Time-sharing -- the task scheduler; Multi-core processors; System architecture styles; SISD; SIMD; MISD; MIMD. Computer memory architecture stylesUMA; NUMA; Summary; Chapter 3: Life of a Thread; Threads in Python; Thread state; State flow chart; Python example of thread state; Breaking it down; Different types of threads; POSIX threads; Windows threads; The ways to start a thread; Starting a thread; Inheriting from the thread class; Breaking it down; Forking; Example; Breaking it down; Daemonizing a thread; Example; Breaking it down; Handling threads in Python; Starting loads of threads; Example; Breaking it down; Slowing down programs using threads; Example; Breaking it down. Getting the total number of active threadsExample; Breaking it down; Getting the current thread; Example; Breaking it down; Main thread; Example; Breaking it down; Enumerating all threads; Example; Breaking it down; Identifying threads; Example; Breakdown; Ending a thread; Best practice in stopping threads; Example; Output; Orphan processes; How does the operating system handle threads; Creating processes versus threads; Example; Breaking it down; Multithreading models; One-to-one thread mapping; Many-to-one; Many-to-many; Summary; Chapter 4: Synchronization between Threads. Synchronization between threadsThe Dining Philosophers; Example; Output; Race conditions; Process execution sequence; The solution; Critical sections; Filesystem; Life-critical systems; Shared resources and data races; The join method; Breaking it down; Putting it together; Locks; Example; Breaking it down; RLocks; Example; Breaking it down; Output; RLocks versus regular locks; Condition; Definition; Example; Our publisher; Our subscriber; Kicking it off; The results; Semaphores; Class definition; Example; The TicketSeller class; Output; Thread race; Bounded semaphores; Events; Example. Practically and deeply understand concurrency in Python to write efficient programs About This Book Build highly efficient, robust, and concurrent applications Work through practical examples that will help you address the challenges of writing concurrent code Improve the overall speed of execution in multiprocessor and multicore systems and keep them highly available Who This Book Is For This book is for Python developers who would like to get started with concurrent programming. Readers are expected to have a working knowledge of the Python language, as this book will build on these fundamentals concepts. What You Will Learn Explore the concept of threading and multiprocessing in Python Understand concurrency with threads Manage exceptions in child threads Handle the hardest part in a concurrent system - shared resources Build concurrent systems with Communicating Sequential Processes (CSP) Maintain all concurrent systems and master them Apply reactive programming to build concurrent systems Use GPU to solve specific problems In Detail Python is a very high level, general purpose language that is utilized heavily in fields such as data science and research, as well as being one of the top choices for general purpose programming for programmers around the world. It features a wide number of powerful, high and low-level libraries and frameworks that complement its delightful syntax and enable Python programmers to create. This book introduces some of the most popular libraries and frameworks and goes in-depth into how you can leverage these libraries for your own high-concurrent, highly-performant Python programs. We'll cover the fundamental concepts of concurrency needed to be able to write your own concurrent and parallel software systems in Python. The book will guide you down the path to mastering Python concurrency, giving you all the necessary hardware and theoretical knowledge. We'll cover concepts such as debugging and exception handling as well as some of the most popular libraries and frameworks that allow you to create event-driven and reactive systems. By the end of the book, you'll have learned the techniques to write incredibly efficient concurrent systems that follow best practices. Style and approach This easy-to-follow guide teaches you new practices and techniques to optimize your code, and then moves toward more advanced ways to effectively write efficient Python code. Small and simple practical examples will help you test... Python (Computer program language) http://id.loc.gov/authorities/subjects/sh96008834 Application software Development. http://id.loc.gov/authorities/subjects/sh95009362 Python (Langage de programmation) Logiciels d'application Développement. COMPUTERS Programming Languages Python. bisacsh Application software Development fast Python (Computer program language) fast has work: Learning Concurrency in Python (Text) https://id.oclc.org/worldcat/entity/E39PD3FQgkRKQ9XCVdK6cChM4C https://id.oclc.org/worldcat/ontology/hasWork Print version: Forbes, Elliot. Learning Concurrency in Python. Birmingham : Packt Publishing, ©2017 FWS01 ZDB-4-EBA FWS_PDA_EBA https://search.ebscohost.com/login.aspx?direct=true&scope=site&db=nlebk&AN=1577485 Volltext |
spellingShingle | Forbes, Elliot Learning concurrency in Python : speed up your Python code with clean, readable, and advanced concurrency techniques / Cover; Copyright; Credits; About the Author; About the Reviewer; www.PacktPub.com; Customer Feedback; Table of Contents; Preface; Chapter 1: Speed It Up!; History of concurrency; Threads and multithreading; What is a thread?; Types of threads; What is multithreading?; Processes; Properties of processes; Multiprocessing; Event-driven programming; Turtle; Breaking it down; Reactive programming; ReactiveX -- RxPy; Breaking it down; GPU programming; PyCUDA; OpenCL; Theano; The limitations of Python; Jython; IronPython; Why should we use Python?; Concurrent image download; Sequential download. Breaking it downConcurrent download; Breaking it down; Improving number crunching with multiprocessing; Sequential prime factorization; Breaking it down; Concurrent prime factorization; Breaking it down; Summary; Chapter 2: Parallelize It; Understanding concurrency; Properties of concurrent systems; I/O bottlenecks; Understanding parallelism; CPU-bound bottlenecks; How do they work on a CPU?; Single-core CPUs; Clock rate; Martelli model of scalability; Time-sharing -- the task scheduler; Multi-core processors; System architecture styles; SISD; SIMD; MISD; MIMD. Computer memory architecture stylesUMA; NUMA; Summary; Chapter 3: Life of a Thread; Threads in Python; Thread state; State flow chart; Python example of thread state; Breaking it down; Different types of threads; POSIX threads; Windows threads; The ways to start a thread; Starting a thread; Inheriting from the thread class; Breaking it down; Forking; Example; Breaking it down; Daemonizing a thread; Example; Breaking it down; Handling threads in Python; Starting loads of threads; Example; Breaking it down; Slowing down programs using threads; Example; Breaking it down. Getting the total number of active threadsExample; Breaking it down; Getting the current thread; Example; Breaking it down; Main thread; Example; Breaking it down; Enumerating all threads; Example; Breaking it down; Identifying threads; Example; Breakdown; Ending a thread; Best practice in stopping threads; Example; Output; Orphan processes; How does the operating system handle threads; Creating processes versus threads; Example; Breaking it down; Multithreading models; One-to-one thread mapping; Many-to-one; Many-to-many; Summary; Chapter 4: Synchronization between Threads. Synchronization between threadsThe Dining Philosophers; Example; Output; Race conditions; Process execution sequence; The solution; Critical sections; Filesystem; Life-critical systems; Shared resources and data races; The join method; Breaking it down; Putting it together; Locks; Example; Breaking it down; RLocks; Example; Breaking it down; Output; RLocks versus regular locks; Condition; Definition; Example; Our publisher; Our subscriber; Kicking it off; The results; Semaphores; Class definition; Example; The TicketSeller class; Output; Thread race; Bounded semaphores; Events; Example. Python (Computer program language) http://id.loc.gov/authorities/subjects/sh96008834 Application software Development. http://id.loc.gov/authorities/subjects/sh95009362 Python (Langage de programmation) Logiciels d'application Développement. COMPUTERS Programming Languages Python. bisacsh Application software Development fast Python (Computer program language) fast |
subject_GND | http://id.loc.gov/authorities/subjects/sh96008834 http://id.loc.gov/authorities/subjects/sh95009362 |
title | Learning concurrency in Python : speed up your Python code with clean, readable, and advanced concurrency techniques / |
title_auth | Learning concurrency in Python : speed up your Python code with clean, readable, and advanced concurrency techniques / |
title_exact_search | Learning concurrency in Python : speed up your Python code with clean, readable, and advanced concurrency techniques / |
title_full | Learning concurrency in Python : speed up your Python code with clean, readable, and advanced concurrency techniques / Elliot Forbes. |
title_fullStr | Learning concurrency in Python : speed up your Python code with clean, readable, and advanced concurrency techniques / Elliot Forbes. |
title_full_unstemmed | Learning concurrency in Python : speed up your Python code with clean, readable, and advanced concurrency techniques / Elliot Forbes. |
title_short | Learning concurrency in Python : |
title_sort | learning concurrency in python speed up your python code with clean readable and advanced concurrency techniques |
title_sub | speed up your Python code with clean, readable, and advanced concurrency techniques / |
topic | Python (Computer program language) http://id.loc.gov/authorities/subjects/sh96008834 Application software Development. http://id.loc.gov/authorities/subjects/sh95009362 Python (Langage de programmation) Logiciels d'application Développement. COMPUTERS Programming Languages Python. bisacsh Application software Development fast Python (Computer program language) fast |
topic_facet | Python (Computer program language) Application software Development. Python (Langage de programmation) Logiciels d'application Développement. COMPUTERS Programming Languages Python. Application software Development |
url | https://search.ebscohost.com/login.aspx?direct=true&scope=site&db=nlebk&AN=1577485 |
work_keys_str_mv | AT forbeselliot learningconcurrencyinpythonspeedupyourpythoncodewithcleanreadableandadvancedconcurrencytechniques |