Skip to content

kvathupo/art-of-multicore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What?

Solutions to exercises in The Art of Multiprocessor Programming (available for purchase here).

Using the following technology:

  • C++ (gcc 10)
  • Java (JDK 14)

How do I start?

See a hint of how many threads can be run with machine_check.cpp. My machine can run 4 threads. How about yours?

Compilation

C++

  1. Compile without thread sanitizers
g++ -std=c++17 -I ./include/ ./lib/*.cpp ./main/main.cpp -lpthread

Java

  1. Compile the includes into a jar
jar cf includes.jar include/*.java
  1. Compile with correct classpath
javac -cp ".:includes.jar;" Main.java

About

Solutions to exercises

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published