Skip to content

Instantly share code, notes, and snippets.

View shaun-jacks's full-sized avatar

Shaun Jackson shaun-jacks

  • Software Engineer, Sony Playstation
  • San Diego, CA
View GitHub Profile
@vonnenaut
vonnenaut / multithreading_c.md
Last active January 27, 2021 09:28
Multi-threaded Programming in C

Multi-Threaded Programming in C

pthreads

  1. include header #include <pthread.h>

  2. Compile with one of the following options to link the library and allow reporting of compilation errors: gcc -o main main.c -lpthread gcc -o main main.c -pthread