C Useful


Thread / OMP



A Simple Example To Create A Thread With Arguments

(Linux -> pthread | Windows -> Native Thread)
( man pthread_create | man pthread_join | MSDN CreateThread | MSDN WaitForSingleObject )

An Example To Create Multiple Threads With An Integer Argument And A Mutex

(Linux -> pthread | Windows -> Native Thread)
( man pthread_mutex_init | man pthread_mutex_lock | MSDN CreateMutex | MSDN WaitForSingleObject )

A Very Basic Example To Use OpenMP Parallel Loop

(Multi-Cores/Threads)
( https://www.openmp.org/ )