Home >>> Courses >>> Threads

What customers say ...


For beginners, it is an ideal course/introduction. Good teacher, very good teaching materials and nice practical examples.

Dauwe Kristof about the course "Python for Programmers" more...


I really liked the training. It matched the expectations of a student. This training is amazing.

Deepti about the tutorial "Iterators, Generators and Decorators at EuroPython 2014" more...


I really liked the course since it offered a lot of information in a structured way. I especially found it helpful to see the different techniques "in action".

Alexander Bittner, gocept GmbH & Co. KG about the course "Python for Programmers" more...


The course "Python for Scientists and Engineers" is a very useful introduction to Python programming for scientific applications ...

Dr. Mihai Duta, Oxford Supercomputing Centre, UK more...


Course curriculum and delivery absolutely goal-oriented very understandable. Highly recommended!!!

Ralf Dörksen, Sangross about the course "Introduction to Django" more...


Module - Threads and Processes in Python

Dates for Open Courses

Course only available as in-house training. Please ask us at info@python-academy.de

Motivation

Threads allow the simultaneous execution of several program paths. This opens new possibilities for program development. On the other hand, programs become more complex. Python uses the native thread implementation of the operating system and offers a unified API therefore offers platform-impendent threaded programming.

Course content

Thread Basics

The possibilities for threads in Python are shown. An examples is used to demonstrate how the module threading works.

GIL

Python has a so called General Interpreter Lock (GIL) that prevents several threads to run in real parallel on multi-CPU hardware. The implications of the GIL on programming are covered.

Thread Synchronization

Synchronization of threads is a important part of thread programming. Random manipulations of data has to be avoided when two threads access the same data at the same time. To achieve this data need to be locked by one thread providing exclusive access for this period of time.

Examples are used to explain the principles of locking. Special focus is put on so called dead-lock situations where threads block each other from executing and bring the program to a halt.

Processes

Python provides several ways to launch and access external processes. These ways are introduced with examples.

Combination of Threads and Processes

The combination of threads and processes allows to run programs in parallel using the advantages of multi-processor machines possibly gaining speedups. An example is used to demonstrate the effect of such combinations.

Module Duration

1 day

Exercises

The participants can follow all steps directly on their computers. There are exercises at the end of each unit providing ample opportunity to apply the freshly learned knowledge.

Course Material

Every participant receives comprehensive printed materials that cover the whole course content as wells as all source codes and used software.

[Follow @pyacademy]

The Python Academy is sponsor of PyCon.DE 2019.

[PyCon.DE  2019]

The Python Academy is sponsor of PyCon LT 2019.

[PyCon LT 2019]

The Python Academy is sponsor of PyCon US 2019.

[PyCon US 2019]

Our Partners

Partner Coding Akademie


[Coding Akademie]
------------

The Python Academy is sponsor of PythonCamp Köln 2019.

[PythonCamp 2019]

The Python Academy is sponsor of PythonCon Nambia 2019.

[PythonCon Nambia 2019]

The Python Academy is sponsor of PyConIE 2018.

[PyConIE 2018]

The Python Academy is sponsor of PyCon.DE 2018.

[PyCon.DE  2018]

The Python Academy is sponsor of PyCon Spain 2018.

[PyCon ES 2018]

The Python Academy is sponsor of PyCon Ghana 2018.

[PyCon GH 2018]

The Python Academy is sponsor of EuroPython 2018.

[EuroPython 2018]

The Python Academy is sponsor of DjangCon Europe 2018.

[DjangCon Europe 2018]

The Python Academy is sponsor of PyCon US 2018.

[PyCon US 2018]

The Python Academy is sponsor of PythonCamp Köln 2018.

[PythonCamp 2018]

The Python Academy is sponsor of PyConIE 2017.

[PyConIE 2017]

The Python Academy is sponsor of EuroPython 2017.

[EuroPython 2017]

The Python Academy is sponsor of PyCon US 2017.

[PyCon US 2017]

The Python Academy is sponsor of PythonCamp Köln 2017.

[PythonCamp 2017]

The Python Academy is sponsor of Django Girls Leipzig 2016

[Django Girls Leipzig 2016]

The Python Academy is sponsor of PyCon DE 2016.

[PyCon DE 2016]

The Python Academy is sponsor of PyCon Ireland 2016.

[PyCon IE 2016]

The Python Academy is sponsor of EuroSciPy 2016.

[EuroSciPy 2016]

The Python Academy is sponsor of PyCon US 2016.

[PyCon US 2016]

The Python Academy is sponsor of PyData Berlin 2016.

[PyData Berlin 2016]

The Python Academy is sponsor of PyCon Sweden 2016.

[PyCon SE 2016]

The Python Academy is sponsor of Python Unconference 2015.

[PyUnconf 2015]

The Python Academy is sponsor of EuroSciPy 2015.

[EuroSciPy 2015]

The Python Academy is sponsor of EuroPython 2015.

[EuroPython 2015]

The Python Academy is sponsor of PyData Berlin 2015.

[PyData Berlin 2015]

The Python Academy is sponsor of PyCon Montréal 2015.

[PyCon Montréal 2015]

The Python Academy is sponsor of Python BarCamp Köln 2015.

[Python BarCamp 2015]https://www.euroscipy.org/2016/

The Python Academy is sponsor of Chemnitzer Linux-Tage 2015.

Chemnitzer Linux-Tage 2015 - 21. und 22. März 2015

The Python Academy is sponsor of Django Girls Wroclaw 2015.

[Django Girls Wroclaw 2015]

The Python Academy is sponsor of PyCon Ireland 2014.

[PyCon Ireland 2014]

The Python Academy is sponsor of EuroSciPy 2014.

[EuroSciPy 2014]

The Python Academy is sponsor of PyData London 2014.

[PyData London 2014]

The Python Academy is sponsor of EuroPython 2014.

[EuroPython 2014]

The Python Academy is sponsor of PyCon 2014 Montréal.

[PyCon 2014 Montréal]

The Python Academy is sponsor of Python BarCamp Köln 2014.

[Python BarCamp 2014]

The Python Academy is sponsor of PyConDE 2013.

[PyCon DE 2013]

The Python Academy is sponsor of EuroPython 2013.

[EuroPython 2013]

The Python Academy is sponsor of PyCon US 2013.

[PyCon US 2013]

The Python Academy is sponsor of EuroSciPy 2013.

[EuroSciPy 2013]

The Python Academy is sponsor of PyConPL 2012.

[PyCon PL 2012]