Example Programs and Explanatory Documents


 

Creating Processes

Windows:

createit.c

Linux:

fork.c

fork-exec.c

 

Creating Threads

Windows:

 For Rookies-tutorial

winthread.c
winthread.exe

_beginthreadex

Bounc

Skelton.c

Skeleton.exe

 

Linux:

pthread.c

Pthread tutorial

Pthread definition

Communication

Linux:

pipe.c

 

Synchronization

Windows:

Dining Philosophers

Windows Thread Introduction

Code

Mutex

Semaphore

Events

card.c card.exe