From 32e13b1b4b57158e79f6b9ab897415b2f3e58773 Mon Sep 17 00:00:00 2001
From: Kang Hyeonuk <hugang1208@ajou.ac.kr>
Date: Sat, 29 Jan 2022 14:26:41 +0000
Subject: [PATCH] Update report14.md

---
 lec14/report14.md | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/lec14/report14.md b/lec14/report14.md
index 788516a..cc6b80a 100644
--- a/lec14/report14.md
+++ b/lec14/report14.md
@@ -27,4 +27,10 @@
     * block <br>
 ![lec14-2](../Image/lec14-2.jpg)    
 
+### How to control static and global variable?
+* static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZERS;
+
+    pthread_mutex_lock(&mutex);
+    count++;
+    pthread_mutex_unlock(&mutex);
 
-- 
GitLab