Skip to content

A console application for stimulating multi-threading programme in C language.

Notifications You must be signed in to change notification settings

srimalonline/pthreads-in-c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

Thread Programming Simulation in C

A console application for simulating multi-threading programme in C language.

How to use this

  1. Clone the code for your pc (Linux environment is best)
git clone https://github.com/srimalonline/pthreads-in-c
cd pthreads-in-c

To know the correct execution time, I'm using WSL ubuntu environment with windows terminal. So, You should use linux environment and install gcc package.

  1. Compile the app using gcc (adding -lpthread is a must)
gcc app.c -lpthread

Then you just created an executable file named a.out

  1. Run the executable file with time function.
time ./a.out

Tech Stack

Platform: Linux/ Windows with WSL

Package: gcc

Authors

About

A console application for stimulating multi-threading programme in C language.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages