The intention of the following source code is to just to show how the use of multiprocessing as well as threading can help achieve high performance on real time applications in python.
The first example does not use either multiprocessing nor threading
Multiprocessing example
Multiprocessing and multithreading:
This example shows how the creation of higher level abstractions can simplify source code