From 971114a661e4f48ac69c26f472b47d50ea4be13c Mon Sep 17 00:00:00 2001 From: Andrea Smith Date: Fri, 13 Nov 2020 20:07:16 -0600 Subject: Start dispatch --- P3/server.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'P3') diff --git a/P3/server.c b/P3/server.c index 0226e41..8957d0d 100644 --- a/P3/server.c +++ b/P3/server.c @@ -77,6 +77,8 @@ void initCache(){ char* getContentType(char * mybuf) { // Should return the content type based on the file type in the request // (See Section 5 in Project description for more details) + + } // Function to open and read the file from the disk into the memory @@ -166,6 +168,8 @@ int main(int argc, char **argv) { // Start the server // Create dispatcher and worker threads (all threads should be detachable) + pthread_t thread; + pthread_create(&thread, NULL, dispatch, NULL); // DEBUG! figure out last arg // Create dynamic pool manager thread (extra credit A) -- cgit v1.2.3