Skip to content

Latest commit

 

History

History
14 lines (7 loc) · 702 Bytes

README.md

File metadata and controls

14 lines (7 loc) · 702 Bytes

lazystuff

A repository where I share some useful things I have done before out of curiosity, boredom or mainly, laziness. Contributions and helpful notes/recommendations are very welcomed <3

Content

I. PARALLELISM

Use classes or methods for parallelisation of python.

  1. thread_scheduler.py :

    • The class Job allows the scheduling of a thread in a python program. A job can be created and a new thread is launched enabled thus performing different tasks in parallel. It is only effecient if the threads are performing IO tasks. This one is simple and has no external 3rd party dependencies. A more mature example would be like this one https://github.com/DigonIO/scheduler.