Skip to content
Branch: master
Find file History
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
Makefile some thread API examples Apr 23, 2019
README.md some thread API examples Apr 23, 2019
thread_create.c some thread API examples Apr 23, 2019
thread_create_simple_args.c some thread API examples Apr 23, 2019
thread_create_with_return_args.c some thread API examples Apr 23, 2019

README.md

Threads API

Some simple examples of how to use POSIX thread APIs.

Relevant files:

  • thread_create.c: A simple thread creation program, with args passed to the thread.
  • thread_create_with_return_args.c: Return values from the thread to the parent.
  • thread_create_simple_args.c: Simpler argument/return value passing for the lazy.

Type make to build; each file foo.c generates an executable foo which you can then run, e.g.:

prompt> ./thread_create
You can’t perform that action at this time.