Lines Matching defs:threads
32 * This class implements a simple HTTP server. It uses multiple threads to
54 int threads;
73 * threads and maximum number of connections per thread. This functions
77 * @param threads the number of threads to create to handle requests
83 public HttpServer (HttpCallback cb, int threads, int cperthread)
85 this (cb, threads, cperthread, 0);
90 * of threads and maximum number of connections per thread and running on
91 * the specified port. The specified number of threads are created to
96 * @param threads the number of threads to create to handle
104 public HttpServer (HttpCallback cb, int threads, int cperthread, int port)
109 this.threads = threads;
112 servers = new Server [threads];
113 for (int i=0; i<threads; i++) {
119 /** Tell all threads in the server to exit within 5 seconds.
125 for (int i=0; i<threads; i++) {
583 * N threads.
618 * Set the condition to true. Any threads that are currently blocked
659 * Force N threads to rendezvous (ie. wait for each other) before proceeding.
661 * thread makes the call. Then all threads continue.
663 * All threads that call with the same condition name, must use the same value
666 * Obviously, if fewer than N threads make the rendezvous then the result