Oracle® Solaris Studio 12.4: Performance Analyzer Tutorials

Exit Print View

Updated: December 2014
 
 

Please tell us how to improve our documentation:


0 of 500

0 of 500



0 of 500
Thank you for your feedback! If you want to participate in content improvement and share additional information, please click Feedback button.
Rate this document:

About the mttest Program

The program mttest is a simple program that exercises various synchronization options on dummy data. The program implements a number of different tasks and each task uses the same basic algorithm:

  • Queue up a number of work blocks (4, by default).

  • Spawn a number of threads to process them (also, 4, by default).

  • In each task, use a particular synchronization primitive to control access to the work blocks.

  • Process the work for the block, after the synchronization.

Each task uses a different synchronization method. The mttest code executes each task in sequence.