Lines Matching defs:thread
34 * Each thread has a number of private, nonblocking file descriptors,
35 * referred to as fdmap. A writer thread will constantly be writing to
40 * epoll_wait(2) blocking as the lineal writer thread will take "longer",
43 * Note that because fds are private to each thread, this workload does
108 static bool multiq; /* use an epoll instance per thread */
110 /* amount of fds to monitor, per thread */
121 pthread_t thread;
130 OPT_UINTEGER('f', "nfds", &nfds, "Specify amount of file descriptors to monitor for each thread"),
136 OPT_BOOLEAN( 'm', "multiq", &multiq, "Use multiple epoll instances (one per thread)"),
365 ret = pthread_create(&w->thread, attrp, workerfn,
389 printinfo("starting writer-thread: doing %s writes ...\n",
414 printinfo("exiting writer-thread (total full-loops: %zd)\n", iter);
508 * to each thread's fdmap.
517 printinfo("main thread: toggling done\n");
541 printf("[thread %2d] fdmap: %p [ %04ld ops/sec ]\n",
544 printf("[thread %2d] fdmap: %p ... %p [ %04ld ops/sec ]\n",