Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 716 Bytes

README.md

File metadata and controls

30 lines (24 loc) · 716 Bytes

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