| PathEngine home | previous: | next: |
Measures throughput for a pool of worker threads operating on a shared collision context.
Thread pools of varying sizes are set up and the throughput measured for each pool size.
Once built, you can run this project by double-clicking 'threadpool.exe', in the 'bin' subdirectory of the SDK.
The project is set up as a console application.
On running the executable,
measurements will be performed and results printed to the console.
When the measurements have been completed, press RETURN to exit the application.
The CRITICAL_SECTION multithreading primitive is used in the example
as well as CreateThread() and wait calls from the windows multithreading API,
so the code is specific to windows platforms.
Porting the example functionality to other platforms should be pretty straightforward,
however.
Note that this example requires the stand-alone PathEngine dll, and therefore will not run against the testbed only version of the SDK.
| Documentation for PathEngine release 5.16 - Copyright © 2002-2008 PathEngine | next: |