Learning how threads and atomics in C work by making a little particle system with ncurses for the rendering stdatomic to avoid race conditions and pthread for thread management
make && ./runor if you don't have make
gcc -o run main.c particles.c -lncurses -lpthread
./run