November 2019
Intermediate to advanced
448 pages
15h 6m
English
Chapter 9 has two exercises.
If you wanted to use a C++17 feature, what flag would you use when compiling your WebAssembly module, to tell Clang to use that standard?
-std=c++17
Test adjusting the calculate_primes logic from section 9.4 to use three threads rather than four to see how the calculation duration is impacted. Test using five threads, and place the main thread’s calculation into a pthread to see if moving all the calculations off the main thread impacts the calculation duration.
In your WebAssembly\ folder, create the Appendix D\D.7.2\source\ folder. Copy the calculate_primes.cpp file from your Chapter 9\9.4 pthreads\source\ folder to your ...
Read now
Unlock full access