Table of Contents

signals

Demonstrates how to use signals.

Synopsis

signals

Description

Demonstrates the use of threads and signals.

The main() routine launches two threads. These threads sit in a loop and count. After a given number of iterations through their loop, they send a signal to the parent task. When the parent task gets a signal, it wakes up and prints the current counters of the threads to show how much they were able to count.

Associated Files

signals.c

Location

examples/Kernel