Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

⚙️ Process & Thread — Complete Guide in C

Complete hands-on implementation of Process and Thread programming concepts in C on Linux.


📌 Topics Covered

# 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

🚀 How to Compile & Run

# 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

🛠️ Environment

  • OS: Linux / Ubuntu
  • Compiler: GCC
  • Language: C (C99/C11)

👨‍💻 Author

Mayilvannan VB — EEE Student | System Programming Enthusiast
📧 mayilvannanbalan@gmail.com

About

Complete guide to Process & Thread programming in C — fork, exec, pthread, mutex, semaphore

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages