I have two questions on python threading:
1: is there is any speed performance or difference between Thread module and Threading module?

2: Is there is any other major difference between Thread module and threading module?

I used thread module for my download manager project.
i think this thread module does not doing parallel works. is this correct ?

Recommended Answers

All 2 Replies

The module threading is the higher level module and actually uses module thread, since that one has the lower level tasks. So one can assume that threading is somewhat slower in speed, but nicer in syntax.

Python3 adds another module called multiprocessing that can take advantage of multiple processsor machines.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.