|
Description
This program spawns off 3 threads in a suspended state. It will then, using a round robin technique, assign a processor to run each thread. Each thread will kick off and start stating a unique statement for each iteration and continue until the first thread signals completion. Upon completion, the main thread will shut down all the threads and commence cleanup and shut down the program.
Running the Sample
Once you’ve compiled the application ensure the system is configured in Dedicated mode and has two or more cores committed to RTSS. Then. run this application to demonstrate how to run threads on specified cores.
Source Files
SMPSample.rtss
project source file:
SMPSample.c
is the main source code for this sample.