Skip to content

darkzense/threading

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Threading

Usage

  1. Specify the variable assets:
...
char word[] = "anna";
long num = 6;
...
  1. Compile & run
    • Windows (mingw)
    gcc –lpthread -o thread thread.c && ./thread
    • Linux (gcc)
    gcc -o thread thread.c && ./thread

Example Outputs

> Waiting for threads to finish (pthread join)
> anna - Is palindrome
> 6 - Is a perfect number
> Waiting for threads to finish (pthread join)
> hello - Is not palindrome
> 100 - Is not a perfect number

About

Thread examples in C

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages