Site Tools


documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs048

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

documentation/development/opera/pf25/ppgfldr/smmfldr/gspfldr/12pgs048.txt · Last modified: 2022/10/10 16:53 by 127.0.0.1