asst1-Synchronization/kern/asst1/counter_tester.c
static void incrementer_thread(void * unusedpointer, unsigned long threadnumber)
{

        int i;
        /*
         * Avoid unused variable warnings.
         */
        (void) unusedpointer; 
        (void) threadnumber;

        for (i = 0; i < NINCS; i++) {
                /* loop doing increments until we perform the required number */
                counter_increment();
        }

        /* signal the top-level tester thread we have finished and
           then exit */
        V(finished);

        thread_exit();
}
/*
 *  Each thread simply keeps incrementing the counter until it
 *  performs the required number of increments
 */
Each thread simply keeps incrementing the counter until it
performs the required number of increments
Each thread simply keeps incrementing the counter until it performs the required number of increments
static void incrementer_thread(void * unusedpointer, unsigned long threadnumber)
{
        int i;
        (void) unusedpointer; 
        (void) threadnumber;
        for (i = 0; i < NINCS; i++) {
                counter_increment();
        }
        V(finished);
        thread_exit();
}
static void incrementer_thread ( void * unusedpointer , unsigned long threadnumber ) { int i ; ( void ) unusedpointer ; ( void ) threadnumber ; for ( i = 0 ; i < NINCS ; i ++ ) { counter_increment ( ) ; } V ( finished ) ; thread_exit ( ) ; }
Each thread simply keeps incrementing the counter until it
  performs the required number of increments
Each thread simply keeps incrementing the counter until it performs the required number of increments
/*
         * Avoid unused variable warnings.
         */ /* loop doing increments until we perform the required number */ /* signal the top-level tester thread we have finished and
           then exit */