## Overview

The example counts the number of unique words in a text.

## Files

count_strings.cpp
  Source code for example.
Makefile
  Makefile for building example.

## Directories

msvs
  Contains Microsoft* Visual Studio* 2005 workspace for building and running the example.
xcode
  Contains Xcode* IDE workspace for building and running the example.

## To Build

General build directions can be found here.

## Usage

`count_strings -h`
  Prints the help for command line options
`count_strings [n-of-threads=value] [n-of-strings=value] [verbose] [silent]`
`count_strings [n-of-threads [n-of-strings]] [verbose] [silent]`
  n-of-threads is the number of threads to use; a range of the form low[:high], where low and optional high are non-negative integers or 'auto' for the TBB default.
  n-of-strings is a number of strings.
  verbose - enables printing of extra information during execution.
  silent - no output except elapsed time.
To run a short version of this example, e.g., for use with Intel® Parallel Inspector:
  Build a debug version of the example (see the build directions).
  Run it with a small number of strings and the desired number of threads, e.g., `count_strings 2 10000`.

Up to parent directory

Copyright © 2005-2011 Intel Corporation. All Rights Reserved.

Intel, Pentium, Intel Xeon, Itanium, Intel XScale and VTune are registered trademarks or trademarks of Intel Corporation or its subsidiaries in the United States and other countries.

* Other names and brands may be claimed as the property of others.