Skip to content

Junyingli510/Multithreading

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Multithreading

This is multithreading script!

For example ISS logger:

Reading ISS position will be in one thread. Writing to csv will be in another thread. Make a real-time plot visualizing the ISS position (x = longitude, y = latitutude). Plotting will be also in different thread Read, write and visualize with different frequencies (eg. read every second, write every 5 seconds, visualize every 3 seconds).

Very basic updating plot example:

You can try matplotlib animation.

Getting started

On Window:

Install threading

$ python -m pip install threading

Install requests

$ python -m pip install requests

Install matplotlib

$ python -m pip install matplotlib

Install time

$ python -m pip install time

Install numpy

$ python -m pip install numpy

Running script

python multiThreading.py

(Python 3.9.0)

__ tao @ 2021 04 25 __