// This is the main loop. We log in as the load test user, and then perform random operations until stopped.
void *loadtest(void *pointer_to_thread_id) {
// This is the main loop. We log in as the load test user, and then perform random operations until stopped.
void *loadtest(void *pointer_to_thread_id) {
serv_gets(serv_sock, buf);
// Find a nice spot on the screen to show the operation count for this thread.
serv_gets(serv_sock, buf);
// Find a nice spot on the screen to show the operation count for this thread.
int col = (thread_id / 20) * 10;
long ops = 0;
printf("\033[%d;%dH\033[33m 0\033[0m", row, col);
int col = (thread_id / 20) * 10;
long ops = 0;
printf("\033[%d;%dH\033[33m 0\033[0m", row, col);