Exercises
-
Create a program that launches a number of threads equal to the number of cores available on your computer. Each thread should print a text like "Hello from thread #id" to the console.
-
Fix the bugs present in the laboratory skeleton. Use the hints from the sources.
-
Parallelize the doubling of elements in an array, starting from the laboratory skeleton, where you have the serial version.
-
Parallelize the Floyd-Warshall algorithm, starting from the laboratory skeleton, where you have the serial version.