SMP Sample
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.
Source Files
SMPSample.rtss
project source file:
SMPSample.c
is the main source code for this sample.
Building the Sample
You can compile this sample as either a .EXE or .RTSS configuration.
Running the Sample
You must have two or more cores assigned to RTX64 or Windows in order for this sample to demonstrate the use of multiple cores for either side. No arguments are needed to run this sample.
APIs Referenced
RTAPI
Supported Windows API