6. Hello World Sample Application

The Hello World sample application is an example of a simple CNDP application. The application prints some system information and ‘hello world’ from each thread.

6.1. Running the Application

To run the example:

$ ./builddir/examples/helloworld/helloworld

Max threads: 512, Max lcores: 72, NUMA nodes: 2, Num Threads: 1

hello world! thread id    1

Waiting for all threads to stop!

hello world! thread id    1 Done

All threads have stopped!

Good Bye!