# Threads, Synchronisation 1. We will look at threads that run within a single process today. 2. To create and work with threads, we will use the ‹pthread› API. 3. In addition to thread creation and management, there is a number of ‹pthread› functions that implement synchronisation primitives. 4. We will try out communication using shared memory (global variables). 5. In the second half, we will try mutexes, semaphores and barriers. Let's start by creating a thread: $ micro thread.c