# 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