Soon to come to CSC352: Python Multiprocessing

From dftwiki3
Jump to: navigation, search

Soon to come to CSC352: Python Multiprocessing
--D. Thiebaut 14:44, 10 February 2010 (UTC)

Indeed, as was observed and reported in CSC352, Python does not take advantage of multicore architecture for its threads. Threads execute one at a time. This is still advantageous for situations where threads have long wait times, as is the case with network access.

Python, however, supports multiprocessing, i.e. launching many copies of the main program as separate processes. This is heavier in terms of the use of the operating system, but can better take advantage of multicore processors.

Beware of a multi-processing version of the N-Queens program coming to you soon!!!