# Threads **Repository Path**: lch0821/Threads ## Basic Information - **Project Name**: Threads - **Description**: Deepen understanding of multithreading. - **Primary Language**: C - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-08-05 - **Last Updated**: 2022-05-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Threads This repo is for deepening understanding of multithreading. ## Question 1 This is an interview question for mutithreading. I tried to answer it. See question.c for more details. Just type `make q1` to build and run it. ## Workcrew This is an [example](https://www.ibm.com/developerworks/cn/linux/thread/posix_thread3/index.html) from Daniel Robbins that explain condition variable. See files under workcrew for more details. Just type `make wc` to build and run it. ## Compute MD5 That's funny! Multithreading could be much more slower! In test0, using single thread to compute MD5 takes about 21 seconds on my computer. In test1, using multithreading is almost 50 times slower than test0! In test2, using multithreading is much faster than test0 and test1.