cosort_r()


Speed Sort/Merge Functions in Your Programs

Embedded Sort/Merge Operations

 

The traditional IRI CoSort API is now thread-safe, and is documented as cosort_r(). You can call cosort_r() to speed operations which sort or merge high volumes of data. Since your programs configure the input, compare, and output processes into the CoSort engine, you also can apply your own selection and comparison criteria.

 

The 'r' in cosort_r() refers to the re-entrant nature of the call; i.e., you can call the function recursively from multiple processes. This means you can specify multiple sort orderings on the same input, and in the same pass. Flexible architecture also allows you to manage several sort jobs from within a single process, and from within as many processes as you desire.