ਸਮਕਾਲੀ ਕਾਰਜਨਿਰਵਾਹ¶
ਇਸ ਅਧਿਆਇ ਵਿੱਚ ਵਰਣਿਤ ਮੋਡੀਊਲ ਕੋਡ ਦੇ ਸਮਕਾਲੀ ਕਾਰਜਨਿਰਵਾਹ ਲਈ ਸਮਰਥਨ ਪ੍ਰਦਾਨ ਕਰਦੇ ਹਨ। ਉਚਿਤ ਟੂਲ ਦੀ ਚੋਣ ਚਲਾਏ ਜਾਣ ਵਾਲੇ ਕੰਮ (CPU-bound ਜਾਂ IO-bound) ਅਤੇ ਵਿਕਾਸ ਦੀ ਪਸੰਦੀਦਾ ਸ਼ੈਲੀ (ਇਵੈਂਟ-ਚਲਿਤ ਸਹਿਕਾਰੀ ਮਲਟੀਟਾਸਕਿੰਗ ਜਾਂ ਪ੍ਰੀਐਮਪਟਿਵ ਮਲਟੀਟਾਸਕਿੰਗ) 'ਤੇ ਨਿਰਭਰ ਕਰਦੀ ਹੈ। ਹੇਠਾਂ ਇਸਦਾ ਇੱਕ ਸੰਖੇਪ ਜਾਇਜ਼ਾ ਦਿੱਤਾ ਗਿਆ ਹੈ:
threading--- Thread-based parallelismmultiprocessing--- Process-based parallelism- Introduction
- Reference
- Programming guidelines
- Examples
multiprocessing.shared_memory--- Shared memory for direct access across processesconcurrentਪੈਕੇਜconcurrent.futures--- Launching parallel tasksconcurrent.interpreters--- Multiple interpreters in the same processsubprocess--- Subprocess managementsched--- Event schedulerqueue--- A synchronized queue classcontextvars--- Context Variables
ਹੇਠ ਲਿਖੇ ਮੋਡੀਊਲ ਉੱਪਰ ਦੱਸੀਆਂ ਕੁਝ ਸੇਵਾਵਾਂ ਲਈ ਸਹਾਇਕ ਮੋਡੀਊਲ ਹਨ: