

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Python and multi-threading. Is it a good idea?
No its not a good idea,actually.
Python doesn't allow multi-threading ,but if you want to run your program speed that needs to wait for something like IO then it use a lot. Where as the threading package couldnt let you to use extra CPU cores python doesn't support multi-threading because python on the Cpython interpreter does not support true multi-core execution via multithreading. However, Python DOEShave a Threading library. The GIL does not prevent threading. All the GIL does is make sure only one thread is executing Python code at a time; control still switches between threads. If you mix in C extensions and I/O, however (such as PIL or numpy operations) and any C code can run in parallel with one active Python thread.
- Related Questions & Answers
- Is it a good idea to add sugar in black grape juice?
- Multi-Threading Models
- Socket Programming with Multi-threading in Python?
- Linear search using Multi-threading in C
- Can Selenium use multi threading in one browser?
- What is Risk Retention and is it a good Risk Management Policy?
- Check If It Is a Good Array in C++
- Why importing star is a bad idea in python
- Python Low-level threading API
- Is it a good practice to end switch with defaults in JavaScript?
- What is IDEA in Information Security?
- Implicit Threading and Language-based threads
- Is it good to dream? How is your success related to your dreams?
- The Threading Module in Python
- Is it a good practice to place all declarations at the top in JavaScript?
Advertisements