From 0bba8b9279bc4b3be24b3d39e0dddcd6b4c6105d Mon Sep 17 00:00:00 2001 From: "R. Menezes" Date: Wed, 5 May 2021 13:46:40 -0500 Subject: [PATCH] Added small specification regarding barrier type. --- _docs/password_cracker.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_docs/password_cracker.md b/_docs/password_cracker.md index 3353ffaca..1f858200f 100644 --- a/_docs/password_cracker.md +++ b/_docs/password_cracker.md @@ -255,7 +255,7 @@ When the number of threads doesn't divide the search space evenly, it's easy to The functions `getSubrange()` and `setStringPosition()` are provided in `utils.h` file to assist you with this. We **require** that you use these functions to match our expected output. We cannot guarantee the correctness of code that does not utilize these functions. With all the threads working on the same task, you may want to restructure your thread synchronization a little. -Rather than a queue, you may wish to use a barrier. +Rather than a queue, you may wish to use a `pthread` barrier. ``` Startup Task 0.............................. Task 1..............................