Complete hands-on implementation of Process and Thread programming concepts in C on Linux.
| # | Topic | Concept |
|---|---|---|
| 1 | fork() |
Create child process |
| 2 | exec() family |
Replace process image |
| 3 | wait() / waitpid() |
Synchronize parent-child |
| 4 | pthread_create() |
Create POSIX threads |
| 5 | pthread_join() |
Wait for thread completion |
| 6 | Mutex | Prevent race conditions |
| 7 | Semaphore | Control resource access |
| 8 | Thread-safe programming | Real-world patterns |
# Process programs
gcc process_fork.c -o process_fork && ./process_fork
# Thread programs (need -lpthread)
gcc thread_basic.c -o thread_basic -lpthread && ./thread_basic- OS: Linux / Ubuntu
- Compiler: GCC
- Language: C (C99/C11)
Mayilvannan VB — EEE Student | System Programming Enthusiast
📧 mayilvannanbalan@gmail.com