{"id":42742,"date":"2024-11-13T20:48:15","date_gmt":"2024-11-13T20:48:15","guid":{"rendered":"https:\/\/atmokpo.com\/w\/?p=42742"},"modified":"2024-11-26T06:34:36","modified_gmt":"2024-11-26T06:34:36","slug":"9-c%ec%97%90%ec%84%9c%ec%9d%98-%eb%8f%99%ec%8b%9c%ec%84%b1-%ea%b4%80%eb%a6%ac-%eb%9d%bdlock%ea%b3%bc-%eb%aa%a8%eb%8b%88%ed%84%b0monitor%ec%9d%98-%ec%82%ac%ec%9a%a9","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/42742\/","title":{"rendered":"[\uac1d\uccb4\uc9c0\ud5a5] 9.C#\uc5d0\uc11c\uc758 \ub3d9\uc2dc\uc131 \uad00\ub9ac, \ub77d(Lock)\uacfc \ubaa8\ub2c8\ud130(Monitor)\uc758 \uc0ac\uc6a9"},"content":{"rendered":"<p>\ud604\ub300 \uc18c\ud504\ud2b8\uc6e8\uc5b4 \uac1c\ubc1c\uc5d0\uc11c \ub3d9\uc2dc\uc131 \uad00\ub9ac\ub294 \ub9e4\uc6b0 \uc911\uc694\ud55c \uc8fc\uc81c \uc911 \ud558\ub098\uc785\ub2c8\ub2e4. \ubcf5\uc7a1\ud55c \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc740 \ub3d9\uc2dc\uc5d0 \uc5ec\ub7ec \uc2a4\ub808\ub4dc\uac00 \uc2e4\ud589\ub418\ub294 \ud658\uacbd\uc5d0\uc11c \uc791\ub3d9\ud558\uae30 \ub54c\ubb38\uc5d0 \ub370\uc774\ud130\uc758 \uc77c\uad00\uc131\uc744 \uc720\uc9c0\ud558\uace0 \ub808\uc774\uc2a4 \ucee8\ub514\uc158\uc744 \ubc29\uc9c0\ud558\ub294 \uac83\uc774 \ud544\uc218\uc801\uc785\ub2c8\ub2e4. C#\uc5d0\uc11c\ub294 <strong>\ub77d<\/strong>(Lock)\uacfc <strong>\ubaa8\ub2c8\ud130<\/strong>(Monitor)\ub97c \uc0ac\uc6a9\ud558\uc5ec \ub3d9\uc2dc\uc131\uc744 \uad00\ub9ac\ud560 \uc218 \uc788\ub294 \uac15\ub825\ud55c \uba54\ucee4\ub2c8\uc998\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4.<\/p>\n<h2>1. \ub3d9\uc2dc\uc131\uc758 \uc774\ud574<\/h2>\n<p>\ub3d9\uc2dc\uc131\uc774\ub780 \uc5ec\ub7ec \ud504\ub85c\uc138\uc2a4\ub098 \uc2a4\ub808\ub4dc\uac00 \ub3d9\uc2dc\uc5d0 \uc2e4\ud589\ub418\ub294 \uac83\uc744 \uc758\ubbf8\ud569\ub2c8\ub2e4. \uc774\ub294 \uc8fc\ub85c \uba40\ud2f0\ucf54\uc5b4 \ud504\ub85c\uc138\uc11c\uc640 \uc11c\ubc84 \uc751\uc6a9 \ud504\ub85c\uadf8\ub7a8\uc5d0\uc11c \ud544\uc218\uc801\uc785\ub2c8\ub2e4. \uadf8\ub7ec\ub098 \ub3d9\uc2dc\uc131\uc740 \ub3d9\uc2dc\uc5d0 \uc2e4\ud589\ub418\ub294 \uc2a4\ub808\ub4dc \uac04\uc758 \uc0c1\ud638\uc791\uc6a9\uc73c\ub85c \uc778\ud574 \ubb38\uc81c\ub97c \uc77c\uc73c\ud0ac \uc218\ub3c4 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>2. \ub808\uc774\uc2a4 \ucee8\ub514\uc158(Race Condition)<\/h2>\n<p>\uacbd\uc7c1 \uc870\uac74\uc740 \ub450 \uac1c \uc774\uc0c1\uc758 \uc2a4\ub808\ub4dc\uac00 \uacf5\uc720 \uc790\uc6d0\uc5d0 \ub3d9\uc2dc\uc5d0 \uc811\uadfc\ud558\ub824 \ud560 \ub54c \ubc1c\uc0dd\ud569\ub2c8\ub2e4. \uc774\ub85c \uc778\ud574 \ub370\uc774\ud130\uc758 \uc77c\uad00\uc131\uc774 \uae68\uc9c8 \uc218 \uc788\uc73c\uba70, \ud504\ub85c\uadf8\ub7a8\uc758 \uc608\uce21 \uac00\ub2a5\ud55c \ub3d9\uc791\uc774 \ubc29\ud574\ubc1b\uc744 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774\ub97c \ubc29\uc9c0\ud558\uae30 \uc704\ud574\uc11c\ub294 \uc811\uadfc\ud558\ub294 \uc790\uc6d0\uc5d0 \ub300\ud55c \uc81c\uc5b4\uac00 \ud544\uc218\uc801\uc785\ub2c8\ub2e4.<\/p>\n<h2>3. \ub77d(Lock)\uc758 \uae30\ucd08<\/h2>\n<p>C#\uc758 <strong>\ub77d<\/strong>\uc740 \ud2b9\uc815 \ucf54\ub4dc \ube14\ub85d\uc758 \ub3d9\uc2dc \uc2e4\ud589\uc744 \uc81c\ud55c\ud558\ub294 \uac04\ub2e8\ud55c \ubc29\ubc95\uc785\ub2c8\ub2e4. \ub77d\uc744 \uc0ac\uc6a9\ud558\uba74 \ud55c \uc2a4\ub808\ub4dc\uac00 \ud2b9\uc815 \ucf54\ub4dc \ube14\ub85d\uc744 \uc2e4\ud589\ud558\ub294 \ub3d9\uc548 \ub2e4\ub978 \uc2a4\ub808\ub4dc\ub294 \ud574\ub2f9 \ube14\ub85d\uc5d0 \uc811\uadfc\ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4. \uc774\ub294 \ub370\uc774\ud130\ub97c \ubcf4\ud638\ud558\uace0 \ub808\uc774\uc2a4 \ucee8\ub514\uc158\uc744 \uc608\ubc29\ud558\ub294 \ub370 \ub3c4\uc6c0\uc744 \uc90d\ub2c8\ub2e4.<\/p>\n<h3>3.1 Lock\uc758 \uc0ac\uc6a9\ubc95<\/h3>\n<pre><code>lock(object syncLock) {\n    \/\/ \ubcf4\ud638\ud560 \ucf54\ub4dc\n}<\/code><\/pre>\n<p>\uc704\uc758 \uad6c\ubb38\uc5d0\uc11c <code>syncLock<\/code>\uc740 \ub77d\uc744 \uc801\uc6a9\ud560 \ub54c \uc0ac\uc6a9\ub418\ub294 \uac1d\uccb4\uc785\ub2c8\ub2e4. \uc774 \uac1d\uccb4\ub294 \ubaa8\ub4e0 \uc2a4\ub808\ub4dc\uc5d0\uc11c \uacf5\uc720\ub418\uc5b4\uc57c \ud558\uba70, \uc77c\ubc18\uc801\uc73c\ub85c \ud074\ub798\uc2a4\uc758 \ud544\ub4dc\ub85c \uc120\uc5b8\ub429\ub2c8\ub2e4.<\/p>\n<h3>3.2 \uc608\uc81c: \ub77d\uc758 \uc0ac\uc6a9<\/h3>\n<pre><code>class Counter {\n    private int count = 0;\n    private readonly object syncLock = new object();\n\n    public void Increment() {\n        lock(syncLock) {\n            count++;\n        }\n    }\n\n    public int GetCount() {\n        lock(syncLock) {\n            return count;\n        }\n    }\n}<\/code><\/pre>\n<p>\uc774 \uc608\uc81c\uc5d0\uc11c <code>Counter<\/code> \ud074\ub798\uc2a4\ub294 \uacf5\uc720\ub418\ub294 <code>count<\/code> \ubcc0\uc218\ub97c \uac00\uc9c0\uace0 \uc788\uc2b5\ub2c8\ub2e4. <code>Increment<\/code> \uba54\uc11c\ub4dc\ub294 \ub77d\uc744 \uc0ac\uc6a9\ud558\uc5ec <code>count<\/code> \ubcc0\uc218\uac00 \uc548\uc804\ud558\uac8c \uc99d\uac00\ud558\ub3c4\ub85d \ubcf4\uc7a5\ud569\ub2c8\ub2e4.<\/p>\n<h2>4. \ubaa8\ub2c8\ud130(Monitor) \ud074\ub798\uc2a4\uc758 \ud65c\uc6a9<\/h2>\n<p>C#\uc758 <strong>\ubaa8\ub2c8\ud130<\/strong>\ub294 \ub77d\ubcf4\ub2e4 \ub354 \ub9ce\uc740 \uae30\ub2a5\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. \ubaa8\ub2c8\ud130\ub294 \uc2a4\ub808\ub4dc\uac00 \ud2b9\uc815 \ucf54\ub4dc \ube14\ub85d\uc5d0 \ub4e4\uc5b4\uac00\uace0 \ub098\uc624\ub294 \uac83\uc744 \uc81c\uc5b4\ud560 \ubfd0\ub9cc \uc544\ub2c8\ub77c, \uc2a4\ub808\ub4dc \uac04\uc758 \ud1b5\uc2e0\uacfc \ub3d9\uae30\ud654\ub97c \uc704\ud55c \ub2e4\uc591\ud55c \uba54\uc11c\ub4dc\ub97c \uc81c\uacf5\ud569\ub2c8\ub2e4. \uc774\ub294 \ud2b9\ud788 \uae38\uc5b4\uc9c4 \ub300\uae30 \uc2dc\uac04\uc758 \uacbd\uc6b0 \uc720\uc6a9\ud569\ub2c8\ub2e4.<\/p>\n<h3>4.1 Monitor\uc758 \uae30\ubcf8 \uc0ac\uc6a9\ubc95<\/h3>\n<p>\ubaa8\ub2c8\ud130\ub294 <code>Monitor.Enter<\/code>\uc640 <code>Monitor.Exit<\/code> \uba54\uc11c\ub4dc\ub97c \uc0ac\uc6a9\ud558\uc5ec \ub77d\uc744 \uad6c\ud604\ud569\ub2c8\ub2e4.<\/p>\n<pre><code>Monitor.Enter(syncLock);\ntry {\n    \/\/ \ubcf4\ud638\ud560 \ucf54\ub4dc\n}\nfinally {\n    Monitor.Exit(syncLock);\n}<\/code><\/pre>\n<h3>4.2 \uc608\uc81c: Monitor \uc0ac\uc6a9\ubc95<\/h3>\n<pre><code>class SafeCounter {\n    private int count = 0;\n    private readonly object syncLock = new object();\n\n    public void Increment() {\n        Monitor.Enter(syncLock);\n        try {\n            count++;\n        }\n        finally {\n            Monitor.Exit(syncLock);\n        }\n    }\n\n    public int GetCount() {\n        Monitor.Enter(syncLock);\n        try {\n            return count;\n        }\n        finally {\n            Monitor.Exit(syncLock);\n        }\n    }\n}<\/code><\/pre>\n<p>\uc704\uc758 \uc608\uc81c\uc5d0\uc11c <code>SafeCounter<\/code> \ud074\ub798\uc2a4\ub294 <code>Monitor<\/code>\ub97c \uc0ac\uc6a9\ud558\uc5ec \ub808\uc774\uc2a4 \uc870\uac74\uc744 \ubc29\uc9c0\ud569\ub2c8\ub2e4. <code>try-finally<\/code> \ube14\ub85d\uc744 \uc0ac\uc6a9\ud558\uba74 \uc608\uc678\uac00 \ubc1c\uc0dd\ud558\ub354\ub77c\ub3c4 \ud56d\uc0c1 <code>Monitor.Exit<\/code>\uac00 \ud638\ucd9c\ub418\ub3c4\ub85d \ubcf4\uc7a5\ud569\ub2c8\ub2e4.<\/p>\n<h2>5. Monitor\uc758 \uc9c4\ubcf4\uc801 \uae30\ub2a5<\/h2>\n<p>\ubaa8\ub2c8\ud130\ub294 \ub300\uae30 \ubc0f \uc2e0\ud638 \uba54\ucee4\ub2c8\uc998\uc744 \ud1b5\ud574 \uc2a4\ub808\ub4dc \uac04\uc758 \ud1b5\uc2e0\uc744 \uc9c0\uc6d0\ud569\ub2c8\ub2e4. <code>Monitor.Wait<\/code> \ubc0f <code>Monitor.Pulse<\/code> \uba54\uc11c\ub4dc\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc2a4\ub808\ub4dc\uac00 \ud2b9\uc815 \uc870\uac74\uc744 \uae30\ub2e4\ub9ac\ub3c4\ub85d \ud558\uac70\ub098, \uae30\ub2e4\ub9ac\ub294 \uc2a4\ub808\ub4dc\ub97c \uae68\uc6cc\uc11c \uc790\uc6d0\uc744 \uc0ac\uc6a9\ud560 \uc218 \uc788\uac8c \ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h3>5.1 \uc608\uc81c: Wait\uc640 Pulse<\/h3>\n<pre><code>class ProducerConsumer {\n    private Queue<string> queue = new Queue<string>();\n    private readonly object syncLock = new object();\n    public void Produce(string item) {\n        lock(syncLock) {\n            queue.Enqueue(item);\n            Monitor.Pulse(syncLock); \/\/ \ub300\uae30 \uc911\uc778 \uc18c\ube44\uc790\ub97c \uae68\uc6c0\n        }\n    }\n\n    public string Consume() {\n        lock(syncLock) {\n            while (queue.Count == 0) \n                Monitor.Wait(syncLock); \/\/ \uc544\uc774\ud15c\uc774 \uc874\uc7ac\ud560 \ub54c\uae4c\uc9c0 \ub300\uae30\n            return queue.Dequeue();\n        }\n    }\n}<\/string><\/string><\/code><\/pre>\n<p>\uc774 \uc608\uc81c\uc5d0\uc11c <code>ProducerConsumer<\/code> \ud074\ub798\uc2a4\ub294 \uc0dd\uc0b0\uc790\uc640 \uc18c\ube44\uc790 \ud328\ud134\uc744 \uad6c\ud604\ud569\ub2c8\ub2e4. \uc0dd\uc0b0\uc790\ub294 \ud050\uc5d0 \uc544\uc774\ud15c\uc744 \ucd94\uac00\ud558\uace0, \uc18c\ube44\uc790\ub294 \ud050\uac00 \ube44\uc5b4 \uc788\uc9c0 \uc54a\uc744 \ub54c\uae4c\uc9c0 \uae30\ub2e4\ub9bd\ub2c8\ub2e4. \ub300\uae30 \uc911\uc778 \uc18c\ube44\uc790\ub97c \uae68\uc6b0\uae30 \uc704\ud574 <code>Monitor.Pulse<\/code>\ub97c \uc0ac\uc6a9\ud569\ub2c8\ub2e4.<\/p>\n<h2>6. \ub3d9\uc2dc\uc131 \uad00\ub9ac \uc2dc \uc8fc\uc758\uc0ac\ud56d<\/h2>\n<p>\ub3d9\uc2dc\uc131\uc744 \uad00\ub9ac\ud560 \ub54c \ud754\ud788 \ubc1c\uc0dd\ud558\ub294 \ubb38\uc81c\ub294 &#8216;\ub370\ub4dc\ub77d&#8217;\uc785\ub2c8\ub2e4. \ub370\ub4dc\ub77d\uc740 \ub450 \uac1c \uc774\uc0c1\uc758 \uc2a4\ub808\ub4dc\uac00 \uc11c\ub85c \ub2e4\ub978 \uc790\uc6d0\uc5d0 \ub300\ud574 \ub77d\uc744 \ubcf4\uc720\ud558\uace0, \uc11c\ub85c\uc758 \ub77d\uc744 \uae30\ub2e4\ub9ac\ub294 \uacbd\uc6b0 \ubc1c\uc0dd\ud569\ub2c8\ub2e4. \uc774\ub97c \ubc29\uc9c0\ud558\uae30 \uc704\ud574 \ub2e4\uc74c\uacfc \uac19\uc740 \ubc29\ubc95\uc744 \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<ul>\n<li>\ub77d\uc744 \ud56d\uc0c1 \ud55c \uac00\uc9c0 \uc21c\uc11c\ub85c \uc694\uccad\ud558\uae30<\/li>\n<li>\ube44\uc815\uae30\uc801\uc73c\ub85c \ub77d\uc744 \ud574\uc81c\ud558\uace0 \uc7ac\uc694\uccad\ud558\uae30<\/li>\n<li>\ub77d\uc744 \ud0c0\uc784\uc544\uc6c3\ud558\uc5ec \uc77c\uc815 \uc2dc\uac04\uc774 \uc9c0\ub098\uba74 \ud574\uc81c\ud558\uae30<\/li>\n<\/ul>\n<h2>7. \uacb0\ub860<\/h2>\n<p>C#\uc5d0\uc11c \ub3d9\uc2dc\uc131 \uad00\ub9ac\ub294 \ub9e4\uc6b0 \uc911\uc694\ud558\uba70, \ub77d\uacfc \ubaa8\ub2c8\ud130\ub294 \uc774\ub97c \ud6a8\uacfc\uc801\uc73c\ub85c \uad00\ub9ac\ud558\uae30 \uc704\ud55c \ud575\uc2ec \ub3c4\uad6c\uc785\ub2c8\ub2e4. \uc62c\ubc14\ub978 \ub3d9\uc2dc\uc131 \uad00\ub9ac\ub97c \ud1b5\ud574 \ud504\ub85c\uadf8\ub7a8\uc758 \uc131\ub2a5\uc744 \uadf9\ub300\ud654\ud558\uace0 \ub370\uc774\ud130 \ubb34\uacb0\uc131\uc744 \ubcf4\uc7a5\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ub2e4\uc591\ud55c \ub3d9\uae30\ud654 \uae30\ubc95\uc744 \uc774\ud574\ud558\uace0 \uc801\uc808\ud55c \uc0c1\ud669\uc5d0 \ub9de\uac8c \uc120\ud0dd\ud558\ub294 \uac83\uc774 \uc911\uc694\ud569\ub2c8\ub2e4.<\/p>\n<p>\uc774 \ube14\ub85c\uadf8 \uae00\uc744 \ud1b5\ud574 C#\uc5d0\uc11c \ub3d9\uc2dc\uc131\uc744 \uad00\ub9ac\ud558\ub294 \ubc29\ubc95\uacfc \ub77d \ubc0f \ubaa8\ub2c8\ud130\uc758 \uc0ac\uc6a9\ubc95\uc744 \uc774\ud574\ud558\ub294 \ub370 \ub3c4\uc6c0\uc774 \ub418\uae38 \ubc14\ub78d\ub2c8\ub2e4. \uc774\ub97c \ud1b5\ud574 \ub3d9\uc2dc\uc131 \ubb38\uc81c\ub97c \ud6a8\uacfc\uc801\uc73c\ub85c \ud574\uacb0\ud558\uace0, \ubcf4\ub2e4 \uc548\uc804\ud558\uace0 \ud6a8\uc728\uc801\uc778 \uc18c\ud504\ud2b8\uc6e8\uc5b4\ub97c \uac1c\ubc1c\ud560 \uc218 \uc788\uae30\ub97c \ubc14\ub78d\ub2c8\ub2e4.<\/p>\n<footer>\n<p>\u00a9 2023 C# \uac1c\ubc1c \ube14\ub85c\uadf8. \ubaa8\ub4e0 \uad8c\ub9ac \ubcf4\uc720.<\/p>\n<\/footer>\n","protected":false},"excerpt":{"rendered":"<p>\ud604\ub300 \uc18c\ud504\ud2b8\uc6e8\uc5b4 \uac1c\ubc1c\uc5d0\uc11c \ub3d9\uc2dc\uc131 \uad00\ub9ac\ub294 \ub9e4\uc6b0 \uc911\uc694\ud55c \uc8fc\uc81c \uc911 \ud558\ub098\uc785\ub2c8\ub2e4. \ubcf5\uc7a1\ud55c \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc740 \ub3d9\uc2dc\uc5d0 \uc5ec\ub7ec \uc2a4\ub808\ub4dc\uac00 \uc2e4\ud589\ub418\ub294 \ud658\uacbd\uc5d0\uc11c \uc791\ub3d9\ud558\uae30 \ub54c\ubb38\uc5d0 \ub370\uc774\ud130\uc758 \uc77c\uad00\uc131\uc744 \uc720\uc9c0\ud558\uace0 \ub808\uc774\uc2a4 \ucee8\ub514\uc158\uc744 \ubc29\uc9c0\ud558\ub294 \uac83\uc774 \ud544\uc218\uc801\uc785\ub2c8\ub2e4. C#\uc5d0\uc11c\ub294 \ub77d(Lock)\uacfc \ubaa8\ub2c8\ud130(Monitor)\ub97c \uc0ac\uc6a9\ud558\uc5ec \ub3d9\uc2dc\uc131\uc744 \uad00\ub9ac\ud560 \uc218 \uc788\ub294 \uac15\ub825\ud55c \uba54\ucee4\ub2c8\uc998\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. 1. \ub3d9\uc2dc\uc131\uc758 \uc774\ud574 \ub3d9\uc2dc\uc131\uc774\ub780 \uc5ec\ub7ec \ud504\ub85c\uc138\uc2a4\ub098 \uc2a4\ub808\ub4dc\uac00 \ub3d9\uc2dc\uc5d0 \uc2e4\ud589\ub418\ub294 \uac83\uc744 \uc758\ubbf8\ud569\ub2c8\ub2e4. \uc774\ub294 \uc8fc\ub85c \uba40\ud2f0\ucf54\uc5b4 \ud504\ub85c\uc138\uc11c\uc640 \uc11c\ubc84 \uc751\uc6a9 &hellip; <a href=\"https:\/\/atmokpo.com\/w\/42742\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;[\uac1d\uccb4\uc9c0\ud5a5] 9.C#\uc5d0\uc11c\uc758 \ub3d9\uc2dc\uc131 \uad00\ub9ac, \ub77d(Lock)\uacfc \ubaa8\ub2c8\ud130(Monitor)\uc758 \uc0ac\uc6a9&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[241],"tags":[],"class_list":["post-42742","post","type-post","status-publish","format-standard","hentry","category-csharp"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>[\uac1d\uccb4\uc9c0\ud5a5] 9.C#\uc5d0\uc11c\uc758 \ub3d9\uc2dc\uc131 \uad00\ub9ac, \ub77d(Lock)\uacfc \ubaa8\ub2c8\ud130(Monitor)\uc758 \uc0ac\uc6a9 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/atmokpo.com\/w\/42742\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[\uac1d\uccb4\uc9c0\ud5a5] 9.C#\uc5d0\uc11c\uc758 \ub3d9\uc2dc\uc131 \uad00\ub9ac, \ub77d(Lock)\uacfc \ubaa8\ub2c8\ud130(Monitor)\uc758 \uc0ac\uc6a9 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"\ud604\ub300 \uc18c\ud504\ud2b8\uc6e8\uc5b4 \uac1c\ubc1c\uc5d0\uc11c \ub3d9\uc2dc\uc131 \uad00\ub9ac\ub294 \ub9e4\uc6b0 \uc911\uc694\ud55c \uc8fc\uc81c \uc911 \ud558\ub098\uc785\ub2c8\ub2e4. \ubcf5\uc7a1\ud55c \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc740 \ub3d9\uc2dc\uc5d0 \uc5ec\ub7ec \uc2a4\ub808\ub4dc\uac00 \uc2e4\ud589\ub418\ub294 \ud658\uacbd\uc5d0\uc11c \uc791\ub3d9\ud558\uae30 \ub54c\ubb38\uc5d0 \ub370\uc774\ud130\uc758 \uc77c\uad00\uc131\uc744 \uc720\uc9c0\ud558\uace0 \ub808\uc774\uc2a4 \ucee8\ub514\uc158\uc744 \ubc29\uc9c0\ud558\ub294 \uac83\uc774 \ud544\uc218\uc801\uc785\ub2c8\ub2e4. C#\uc5d0\uc11c\ub294 \ub77d(Lock)\uacfc \ubaa8\ub2c8\ud130(Monitor)\ub97c \uc0ac\uc6a9\ud558\uc5ec \ub3d9\uc2dc\uc131\uc744 \uad00\ub9ac\ud560 \uc218 \uc788\ub294 \uac15\ub825\ud55c \uba54\ucee4\ub2c8\uc998\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. 1. \ub3d9\uc2dc\uc131\uc758 \uc774\ud574 \ub3d9\uc2dc\uc131\uc774\ub780 \uc5ec\ub7ec \ud504\ub85c\uc138\uc2a4\ub098 \uc2a4\ub808\ub4dc\uac00 \ub3d9\uc2dc\uc5d0 \uc2e4\ud589\ub418\ub294 \uac83\uc744 \uc758\ubbf8\ud569\ub2c8\ub2e4. \uc774\ub294 \uc8fc\ub85c \uba40\ud2f0\ucf54\uc5b4 \ud504\ub85c\uc138\uc11c\uc640 \uc11c\ubc84 \uc751\uc6a9 &hellip; \ub354 \ubcf4\uae30 &quot;[\uac1d\uccb4\uc9c0\ud5a5] 9.C#\uc5d0\uc11c\uc758 \ub3d9\uc2dc\uc131 \uad00\ub9ac, \ub77d(Lock)\uacfc \ubaa8\ub2c8\ud130(Monitor)\uc758 \uc0ac\uc6a9&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/42742\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-13T20:48:15+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T06:34:36+00:00\" \/>\n<meta name=\"author\" content=\"root\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:site\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:label1\" content=\"\uae00\uc4f4\uc774\" \/>\n\t<meta name=\"twitter:data1\" content=\"root\" \/>\n\t<meta name=\"twitter:label2\" content=\"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/atmokpo.com\/w\/42742\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/42742\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"[\uac1d\uccb4\uc9c0\ud5a5] 9.C#\uc5d0\uc11c\uc758 \ub3d9\uc2dc\uc131 \uad00\ub9ac, \ub77d(Lock)\uacfc \ubaa8\ub2c8\ud130(Monitor)\uc758 \uc0ac\uc6a9\",\"datePublished\":\"2024-11-13T20:48:15+00:00\",\"dateModified\":\"2024-11-26T06:34:36+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/42742\/\"},\"wordCount\":21,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"csharp\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/42742\/\",\"url\":\"https:\/\/atmokpo.com\/w\/42742\/\",\"name\":\"[\uac1d\uccb4\uc9c0\ud5a5] 9.C#\uc5d0\uc11c\uc758 \ub3d9\uc2dc\uc131 \uad00\ub9ac, \ub77d(Lock)\uacfc \ubaa8\ub2c8\ud130(Monitor)\uc758 \uc0ac\uc6a9 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-11-13T20:48:15+00:00\",\"dateModified\":\"2024-11-26T06:34:36+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/42742\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/42742\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/42742\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[\uac1d\uccb4\uc9c0\ud5a5] 9.C#\uc5d0\uc11c\uc758 \ub3d9\uc2dc\uc131 \uad00\ub9ac, \ub77d(Lock)\uacfc \ubaa8\ub2c8\ud130(Monitor)\uc758 \uc0ac\uc6a9\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/atmokpo.com\/w\/#website\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/atmokpo.com\/w\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"contentUrl\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"width\":400,\"height\":400,\"caption\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\"},\"image\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/bebubo4\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\",\"name\":\"root\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"caption\":\"root\"},\"sameAs\":[\"http:\/\/atmokpo.com\/w\"],\"url\":\"https:\/\/atmokpo.com\/w\/author\/root\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[\uac1d\uccb4\uc9c0\ud5a5] 9.C#\uc5d0\uc11c\uc758 \ub3d9\uc2dc\uc131 \uad00\ub9ac, \ub77d(Lock)\uacfc \ubaa8\ub2c8\ud130(Monitor)\uc758 \uc0ac\uc6a9 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/atmokpo.com\/w\/42742\/","og_locale":"ko_KR","og_type":"article","og_title":"[\uac1d\uccb4\uc9c0\ud5a5] 9.C#\uc5d0\uc11c\uc758 \ub3d9\uc2dc\uc131 \uad00\ub9ac, \ub77d(Lock)\uacfc \ubaa8\ub2c8\ud130(Monitor)\uc758 \uc0ac\uc6a9 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"\ud604\ub300 \uc18c\ud504\ud2b8\uc6e8\uc5b4 \uac1c\ubc1c\uc5d0\uc11c \ub3d9\uc2dc\uc131 \uad00\ub9ac\ub294 \ub9e4\uc6b0 \uc911\uc694\ud55c \uc8fc\uc81c \uc911 \ud558\ub098\uc785\ub2c8\ub2e4. \ubcf5\uc7a1\ud55c \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc740 \ub3d9\uc2dc\uc5d0 \uc5ec\ub7ec \uc2a4\ub808\ub4dc\uac00 \uc2e4\ud589\ub418\ub294 \ud658\uacbd\uc5d0\uc11c \uc791\ub3d9\ud558\uae30 \ub54c\ubb38\uc5d0 \ub370\uc774\ud130\uc758 \uc77c\uad00\uc131\uc744 \uc720\uc9c0\ud558\uace0 \ub808\uc774\uc2a4 \ucee8\ub514\uc158\uc744 \ubc29\uc9c0\ud558\ub294 \uac83\uc774 \ud544\uc218\uc801\uc785\ub2c8\ub2e4. C#\uc5d0\uc11c\ub294 \ub77d(Lock)\uacfc \ubaa8\ub2c8\ud130(Monitor)\ub97c \uc0ac\uc6a9\ud558\uc5ec \ub3d9\uc2dc\uc131\uc744 \uad00\ub9ac\ud560 \uc218 \uc788\ub294 \uac15\ub825\ud55c \uba54\ucee4\ub2c8\uc998\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. 1. \ub3d9\uc2dc\uc131\uc758 \uc774\ud574 \ub3d9\uc2dc\uc131\uc774\ub780 \uc5ec\ub7ec \ud504\ub85c\uc138\uc2a4\ub098 \uc2a4\ub808\ub4dc\uac00 \ub3d9\uc2dc\uc5d0 \uc2e4\ud589\ub418\ub294 \uac83\uc744 \uc758\ubbf8\ud569\ub2c8\ub2e4. \uc774\ub294 \uc8fc\ub85c \uba40\ud2f0\ucf54\uc5b4 \ud504\ub85c\uc138\uc11c\uc640 \uc11c\ubc84 \uc751\uc6a9 &hellip; \ub354 \ubcf4\uae30 \"[\uac1d\uccb4\uc9c0\ud5a5] 9.C#\uc5d0\uc11c\uc758 \ub3d9\uc2dc\uc131 \uad00\ub9ac, \ub77d(Lock)\uacfc \ubaa8\ub2c8\ud130(Monitor)\uc758 \uc0ac\uc6a9\"","og_url":"https:\/\/atmokpo.com\/w\/42742\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-11-13T20:48:15+00:00","article_modified_time":"2024-11-26T06:34:36+00:00","author":"root","twitter_card":"summary_large_image","twitter_creator":"@bebubo4","twitter_site":"@bebubo4","twitter_misc":{"\uae00\uc4f4\uc774":"root","\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04":"1\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/atmokpo.com\/w\/42742\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/42742\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"[\uac1d\uccb4\uc9c0\ud5a5] 9.C#\uc5d0\uc11c\uc758 \ub3d9\uc2dc\uc131 \uad00\ub9ac, \ub77d(Lock)\uacfc \ubaa8\ub2c8\ud130(Monitor)\uc758 \uc0ac\uc6a9","datePublished":"2024-11-13T20:48:15+00:00","dateModified":"2024-11-26T06:34:36+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/42742\/"},"wordCount":21,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["csharp"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/42742\/","url":"https:\/\/atmokpo.com\/w\/42742\/","name":"[\uac1d\uccb4\uc9c0\ud5a5] 9.C#\uc5d0\uc11c\uc758 \ub3d9\uc2dc\uc131 \uad00\ub9ac, \ub77d(Lock)\uacfc \ubaa8\ub2c8\ud130(Monitor)\uc758 \uc0ac\uc6a9 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-11-13T20:48:15+00:00","dateModified":"2024-11-26T06:34:36+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/42742\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/42742\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/42742\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"[\uac1d\uccb4\uc9c0\ud5a5] 9.C#\uc5d0\uc11c\uc758 \ub3d9\uc2dc\uc131 \uad00\ub9ac, \ub77d(Lock)\uacfc \ubaa8\ub2c8\ud130(Monitor)\uc758 \uc0ac\uc6a9"}]},{"@type":"WebSite","@id":"https:\/\/atmokpo.com\/w\/#website","url":"https:\/\/atmokpo.com\/w\/","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","description":"","publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/atmokpo.com\/w\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Organization","@id":"https:\/\/atmokpo.com\/w\/#organization","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","url":"https:\/\/atmokpo.com\/w\/","logo":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/","url":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","contentUrl":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","width":400,"height":400,"caption":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8"},"image":{"@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/bebubo4"]},{"@type":"Person","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7","name":"root","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","caption":"root"},"sameAs":["http:\/\/atmokpo.com\/w"],"url":"https:\/\/atmokpo.com\/w\/author\/root\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/42742","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/comments?post=42742"}],"version-history":[{"count":2,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/42742\/revisions"}],"predecessor-version":[{"id":42746,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/42742\/revisions\/42746"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=42742"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=42742"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=42742"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}