plementation-specific, so we
 * create our own thread IDs for reporting purposes.
 */
int global_thread_num;
pthread_mutex_t thread_num_lock;

/* Forward declarations */
int count_records(DB *, DB_TXN *);
int open_db(DB **, const char *, const char *, DB_ENV *, u_int32_t);
int writer_thread(void *);  </pre>
      <p>
    Next, in our <code class="function">main()</code>, we also eliminate some
    variables that this example no longer needs. In particular, we are able to remove
    the 
        <code class=