asst1-Synchronization/kern/asst1/client_server_tester.c
static void
wait_for_client_threads()
{
        int i;
        kprintf("Waiting for client threads to exit...\n");
        for(i = 0; i < NUM_CLIENTS; i++) {
                P(clients_finished);
        }
        kprintf("All %d client threads have exited.\n", NUM_CLIENTS);
}
/* 
 * Wait for all client threads to exit.  Clients each produce a number
 * of requests. When finished, they signal a semaphore and exit. To
 * wait for them all to finish, we wait on the semaphore NUM_CLIENTS
 * times.
 */
Wait for all client threads to exit.  Clients each produce a number
of requests. When finished, they signal a semaphore and exit. To
wait for them all to finish, we wait on the semaphore NUM_CLIENTS
times.
Wait for all client threads to exit . Clients each produce a number of requests . When finished they signal a semaphore and exit . To wait for them all to finish we wait on the semaphore NUM_CLIENTS times .
static void
wait_for_client_threads()
{
        int i;
        kprintf("Waiting for client threads to exit...\n");
        for(i = 0; i < NUM_CLIENTS; i++) {
                P(clients_finished);
        }
        kprintf("All %d client threads have exited.\n", NUM_CLIENTS);
}
static void wait_for_client_threads ( ) { int i ; kprintf ( " \n " ) ; for ( i = 0 ; i < NUM_CLIENTS ; i ++ ) { P ( clients_finished ) ; } kprintf ( " \n " , NUM_CLIENTS ) ; }
Wait for all client threads to exit.
Wait for all client threads to exit .