From 5bc3a220d949de53885122e2878ba975f4390eef Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Sun, 15 Nov 2020 13:57:45 -0600 Subject: bruh --- P3/server.c | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/P3/server.c b/P3/server.c index 4c5fd20..6aa24e6 100644 --- a/P3/server.c +++ b/P3/server.c @@ -179,16 +179,20 @@ int main(int argc, char **argv) { mkdir(cache, 0666); // Start the server init(port); - // Create dispatcher and worker threads (all threads should be detachable) + // Create dispatcher threads (make detachable????) pthread_t dThreads[dispatchers]; - pthread_create(&dThreads, NULL, dispatch, NULL); // DEBUG! figure out last arg - + for (int i=0; i