Site Tools


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

msgpassing

Demonstrates sending and receiving messages between two threads.

Synopsis

msgpassing

Description

Demonstrates how to send messages between threads or tasks.

The main() routine of the program creates a message port where it can receive messages. It then spawns a thread. This thread creates its own message port, and a message. The thread then sends the message to the parent message port. Once the parent receives the message, it passes it on to the thread.

Associated Files

msgpassing.c

Location

examples/Kernel

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