/Pymp_examples

Some simple examples showing how PyMP works

Primary LanguagePython

Pymp examples

Some simple examples showing how PyMP works

helloWorld.py

A simple parallel hello world program

rangeExample.py

A program that shows the difference between the standard Python range and parallel ranges where the range is split between threads

sharedListDictExample.py

A short program that shows how shared lists and dictionaries are created.

iterateExample.py

A program that shows the difference between standard Python iteration and parallel iteration where items in list or dict or spread between threads

addPara.py

A simple program that adds two lists of numbers together in parallel using parallel range and a shared list

critSection.py

A program that shows how a lock variable can be used to control access to critical sections