{"id":791,"date":"2007-12-10T15:55:00","date_gmt":"2007-12-10T15:55:00","guid":{"rendered":"\/post\/1386\/09\/19\/daa9d8a7d8b1d8a8d8b1d8af-Lock-Statement"},"modified":"2007-12-10T15:55:00","modified_gmt":"2007-12-10T15:55:00","slug":"%da%a9%d8%a7%d8%b1%d8%a8%d8%b1%d8%af-lock-statement","status":"publish","type":"post","link":"https:\/\/mesbahi.net\/fa\/blog\/1386\/09\/19\/%da%a9%d8%a7%d8%b1%d8%a8%d8%b1%d8%af-lock-statement\/","title":{"rendered":"\u06a9\u0627\u0631\u0628\u0631\u062f Lock Statement"},"content":{"rendered":"<p dir=\"rtl\" align=\"justify\"><img loading=\"lazy\" decoding=\"async\" style=\"border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; margin: 0px 0px 0px 10px; border-right-width: 0px\" height=\"48\" alt=\"c\" src=\"http:\/\/mesbahi.net\/fa\/wp-content\/uploads\/sites\/3\/pictures\/migration\/WindowsLiveWriter\/LockStatement_E00B\/c_3.png\" width=\"48\" align=\"right\" border=\"0\" \/> \u06cc\u06a9\u06cc \u0627\u0632 \u062e\u0635\u0648\u0635\u06cc\u0627\u062a \u062c\u0627\u0644\u0628\u06cc \u06a9\u0647 \u062f\u0631 \u0627\u06a9\u062b\u0631 \u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633 \u0647\u0627\u06cc \u0627\u06cc\u0631\u0627\u0646\u06cc \u062f\u06cc\u062f\u0647 \u0645\u06cc\u0634\u0647 \u0627\u06cc\u0646\u0647 \u06a9\u0647 \u0647\u0645\u0647 \u0686\u06cc\u0632 \u0631\u0648 \u062f\u0631 \u062d\u0627\u0644\u062a \u0627\u06cc\u062f\u0647 \u0622\u0644 \u062f\u0631 \u0646\u0638\u0631 \u0645\u06cc \u06af\u06cc\u0631\u0646 \u0648 \u0628\u0647 \u0647\u0645\u06cc\u0646 \u062f\u0644\u06cc\u0644 \u062f\u0631 \u0646\u0631\u0645 \u0627\u0641\u0632\u0627\u0631 \u0647\u0627\u06cc \u062a\u0648\u0644\u06cc\u062f \u062f\u0627\u062e\u0644 \u0639\u0644\u0627\u0648\u0647 \u0628\u0631 \u0645\u0633\u0627\u0626\u0644\u06cc \u0645\u062b\u0644 \u0646\u0627\u062f\u06cc\u062f\u0647 \u06af\u0631\u0641\u062a\u0646 \u0634\u06cc\u0621 \u06af\u0631\u0627\u06cc\u06cc \u0648&#8230; exception handling \u0631\u0648 \u0645\u06cc\u0634\u0647 \u06cc\u06a9\u06cc \u0627\u0632 \u06cc\u062a\u06cc\u0645 \u062a\u0631\u06cc\u0646 \u0645\u0648\u0636\u0648\u0639\u0627\u062a \u067e\u0631\u0648\u0633\u0647 \u062a\u0648\u0644\u06cc\u062f \u062f\u0631 \u0646\u0638\u0631 \u06af\u0631\u0641\u062a.     <\/p>\n<p>\u062f\u0631 \u0637\u0648\u0644 \u062f\u0648\u0631\u0627\u0646\u06cc \u06a9\u0647 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0645\u0634\u0627\u0648\u0631\u062f\u0631 \u06a9\u0646\u0627\u0631 \u062a\u06cc\u0645 \u0647\u0627 \u06a9\u0627\u0631 \u0645\u06cc\u06a9\u0646\u0645 \u0628\u0647 \u06a9\u0631\u0627\u062a \u062f\u06cc\u062f\u0647 \u0627\u0645 \u06a9\u0647 \u0646\u0631\u0645 \u0627\u0641\u0632\u0627\u0631 \u062f\u0686\u0627\u0631 \u0645\u0634\u06a9\u0644 \u0634\u062f\u0647 \u0627\u0648\u0646\u0645 \u0628\u0647 \u062e\u0627\u0637\u0631 \u0639\u062f\u0645 \u067e\u06cc\u0634 \u0628\u06cc\u0646\u06cc \u062e\u0637\u0627\u0647\u0627 \u06cc\u0627 \u0645\u0648\u0627\u0631\u062f \u062e\u0627\u0635\u06cc \u06a9\u0647 \u062f\u0631 \u062d\u06cc\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0627\u0631\u0628\u0631 \u067e\u06cc\u0634 \u0645\u06cc\u0627\u062f. \u06cc\u06a9\u06cc \u0627\u0632 \u0627\u0645\u06a9\u0627\u0646\u0627\u062a #C \u06a9\u0647 \u0645\u062a\u0627\u0633\u0641\u0627\u0646\u0647 \u06a9\u0645\u062a\u0631 \u0627\u0632\u0634 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u0634\u0647 Lock \u06a9\u0631\u062f\u0646 \u0622\u0628\u062c\u06a9\u062a \u0647\u0627\u0633\u062a.     <\/p>\n<p>Lock \u0686\u06cc\u0633\u062a \u061f \u0648 \u0686\u0631\u0627 Lock \u061f     <br \/>Lock \u0645\u0648\u062c\u0628 \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u0627\u0632 \u0639\u062f\u0645 \u0627\u0645\u06a9\u0627\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u062a\u0631\u062f\u0647\u0627 (Thread) \u0627\u0632 \u0642\u0637\u0639\u0647 \u06a9\u062f\u06cc \u0645\u06cc \u0634\u0648\u062f \u06a9\u0647 \u062f\u0631 \u0648\u0636\u0639\u06cc\u062a \u0628\u062d\u0631\u0627\u0646\u06cc \u0628\u0647 \u0633\u0631 \u0645\u06cc \u0628\u0631\u062f (\u0648\u0636\u0639\u06cc\u062a \u0628\u062d\u0631\u0627\u0646\u06cc \u062a\u0639\u0628\u06cc\u0631 \u062e\u0648\u062f \u0645\u0627\u06cc\u06a9\u0631\u0648\u0633\u0627\u0641\u062a\u0647\u060c \u0628\u0647 \u0639\u0628\u0627\u0631\u062a \u062f\u06cc\u06af\u0631 \u06a9\u062f\u06cc \u06a9\u0647 \u0628\u0627\u06cc\u062f Block \u0628\u0645\u0648\u0646\u0647 \u062a\u0627 \u0648\u0636\u0639\u06cc\u062a\u0634 \u0645\u0634\u062e\u0635 \u0634\u0647) . Lock \u06a9\u0631\u062f\u0646 \u0622\u0628\u062c\u06a9\u062a \u0628\u0627\u0639\u062b \u0627\u0646\u062a\u0638\u0627\u0631 \u0648 \u06cc\u0627 \u0628\u0644\u0648\u06a9\u0647 \u0634\u062f\u0646&#160; \u062a\u0631\u062f\u06cc \u06a9\u0647 \u0645\u06cc \u062e\u0648\u0627\u0647\u062f \u0627\u0632 \u0622\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u062f\u060c \u062a\u0627 \u0632\u0645\u0627\u0646 \u0622\u0632\u0627\u062f \u0634\u062f\u0646 \u0622\u0628\u062c\u06a9\u062a \u0645\u06cc \u0634\u0648\u062f.     <\/p>\n<p align=\"justify\">\u0645\u062b\u0627\u0644 \u0632\u06cc\u0631 \u0645\u0648\u0636\u0648\u0639 \u0631\u0648 \u0628\u0647 \u0635\u0648\u0631\u062a \u06a9\u0627\u0645\u0644\u0627 \u06a9\u0627\u0631\u0628\u0631\u062f\u06cc \u062e\u0648\u0627\u0647\u062f \u062f\u0627\u062f :    <\/p>\n<div class=\"csharpcode\" dir=\"ltr\" align=\"left\">\n<div style=\"border-right: gray 1px solid; padding-right: 4px; border-top: gray 1px solid; padding-left: 4px; font-size: 8pt; padding-bottom: 4px; margin: 20px 0px 10px; overflow: auto; border-left: gray 1px solid; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; padding-top: 4px; border-bottom: gray 1px solid; font-family: consolas,&#39;Courier New&#39;,courier,monospace; background-color: rgb(244,244,244)\">\n<div style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: rgb(244,244,244); border-bottom-style: none\">\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">   1:<\/span> <span class=\"rem\">\/\/ Lock \u0645\u062b\u0627\u0644<\/span><\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: rgb(244,244,244); border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">   2:<\/span> <span style=\"color: rgb(0,0,255)\">using<\/span> System;<\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">   3:<\/span> <span style=\"color: rgb(0,0,255)\">using<\/span> System.Threading;<\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: rgb(244,244,244); border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">   4:<\/span>&#160; <\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">   5:<\/span> <span style=\"color: rgb(0,0,255)\">class<\/span> Account<\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: rgb(244,244,244); border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">   6:<\/span> {<\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">   7:<\/span>     <span style=\"color: rgb(0,0,255)\">private<\/span> Object thisLock = <span style=\"color: rgb(0,0,255)\">new<\/span> Object();<\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: rgb(244,244,244); border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">   8:<\/span>     <span style=\"color: rgb(0,0,255)\">int<\/span> balance;<\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">   9:<\/span>&#160; <\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: rgb(244,244,244); border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  10:<\/span>     Random r = <span style=\"color: rgb(0,0,255)\">new<\/span> Random();<\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  11:<\/span>&#160; <\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: rgb(244,244,244); border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  12:<\/span>     <span style=\"color: rgb(0,0,255)\">public<\/span> Account(<span style=\"color: rgb(0,0,255)\">int<\/span> initial)<\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  13:<\/span>     {<\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: rgb(244,244,244); border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  14:<\/span>         balance = initial;<\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  15:<\/span>     }<\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: rgb(244,244,244); border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  16:<\/span>&#160; <\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  17:<\/span>     <span style=\"color: rgb(0,0,255)\">int<\/span> Withdraw(<span style=\"color: rgb(0,0,255)\">int<\/span> amount)<\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: rgb(244,244,244); border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  18:<\/span>     {<\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  19:<\/span>&#160; <\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: rgb(244,244,244); border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  20:<\/span>         <span class=\"rem\">\/\/ \u0627\u06cc\u0646 \u0634\u0631\u0637 \u0647\u0631\u06af\u0632 \u0628\u0631\u0642\u0631\u0627\u0631 \u0646\u062e\u0648\u0627\u0647\u062f \u0634\u062f \u0645\u06af\u0631 \u0627\u06cc\u0646\u06a9\u0647 \u0628\u062e\u0634 \u0644\u0627\u06a9 \u0641\u0639\u0627\u0644 \u0634\u0648\u062f<\/span><\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  21:<\/span>         <\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: rgb(244,244,244); border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  22:<\/span>         <span style=\"color: rgb(0,0,255)\">if<\/span> (balance &lt; 0)<\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  23:<\/span>         {<\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: rgb(244,244,244); border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  24:<\/span>             <span style=\"color: rgb(0,0,255)\">throw<\/span> <span style=\"color: rgb(0,0,255)\">new<\/span> Exception(<span style=\"color: rgb(0,96,128)\">&quot;Negative Balance&quot;<\/span>);<\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  25:<\/span>         }<\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: rgb(244,244,244); border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  26:<\/span>&#160; <\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  27:<\/span>         <span class=\"rem\">\/\/ \u062a\u0627\u062b\u06cc\u0631 \u0644\u0627\u06a9 \u0631\u0627 \u062f\u0631 \u062e\u0637\u0648\u0637 \u0628\u0639\u062f \u062e\u0648\u0627\u0647\u06cc\u062f \u062f\u06cc\u062f<\/span><\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: rgb(244,244,244); border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  28:<\/span>         <\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  29:<\/span>         <span style=\"color: rgb(0,0,255)\">lock<\/span>(thisLock)<\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: rgb(244,244,244); border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  30:<\/span>         {<\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  31:<\/span>             <span style=\"color: rgb(0,0,255)\">if<\/span> (balance &gt;= amount)<\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: rgb(244,244,244); border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  32:<\/span>             {<\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  33:<\/span>                 Console.WriteLine(<span style=\"color: rgb(0,96,128)\">&quot;Balance before Withdrawal :  &quot;<\/span> + balance);<\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: rgb(244,244,244); border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  34:<\/span>                 Console.WriteLine(<span style=\"color: rgb(0,96,128)\">&quot;Amount to Withdraw        : -&quot;<\/span> + amount);<\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  35:<\/span>                 balance = balance - amount;<\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: rgb(244,244,244); border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  36:<\/span>                 Console.WriteLine(<span style=\"color: rgb(0,96,128)\">&quot;Balance after Withdrawal  :  &quot;<\/span> + balance);<\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  37:<\/span>                 <span style=\"color: rgb(0,0,255)\">return<\/span> amount;<\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: rgb(244,244,244); border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  38:<\/span>             }<\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  39:<\/span>             <span style=\"color: rgb(0,0,255)\">else<\/span><\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: rgb(244,244,244); border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  40:<\/span>             {<\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  41:<\/span>                 <span style=\"color: rgb(0,0,255)\">return<\/span> 0; <span style=\"color: rgb(0,128,0)\">\/\/ \u062a\u0631\u0627\u06a9\u0646\u0634 \u0631\u062f \u062e\u0648\u0627\u0647\u062f \u0634\u062f<\/span><\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: rgb(244,244,244); border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  42:<\/span>             }<\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  43:<\/span>         }<\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: rgb(244,244,244); border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  44:<\/span>     }<\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  45:<\/span>&#160; <\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: rgb(244,244,244); border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  46:<\/span>     <span style=\"color: rgb(0,0,255)\">public<\/span> <span style=\"color: rgb(0,0,255)\">void<\/span> DoTransactions()<\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  47:<\/span>     {<\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: rgb(244,244,244); border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  48:<\/span>         <span style=\"color: rgb(0,0,255)\">for<\/span> (<span style=\"color: rgb(0,0,255)\">int<\/span> i = 0; i &lt; 100; i++)<\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  49:<\/span>         {<\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: rgb(244,244,244); border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  50:<\/span>             Withdraw(r.Next(1, 100));<\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  51:<\/span>         }<\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: rgb(244,244,244); border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  52:<\/span>     }<\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  53:<\/span> }<\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: rgb(244,244,244); border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  54:<\/span>&#160; <\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  55:<\/span> <span style=\"color: rgb(0,0,255)\">class<\/span> Test<\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: rgb(244,244,244); border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  56:<\/span> {<\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  57:<\/span>     <span style=\"color: rgb(0,0,255)\">static<\/span> <span style=\"color: rgb(0,0,255)\">void<\/span> Main()<\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: rgb(244,244,244); border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  58:<\/span>     {<\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  59:<\/span>         Thread[] threads = <span style=\"color: rgb(0,0,255)\">new<\/span> Thread[10];<\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: rgb(244,244,244); border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  60:<\/span>         Account acc = <span style=\"color: rgb(0,0,255)\">new<\/span> Account(1000);<\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  61:<\/span>         <span style=\"color: rgb(0,0,255)\">for<\/span> (<span style=\"color: rgb(0,0,255)\">int<\/span> i = 0; i &lt; 10; i++)<\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: rgb(244,244,244); border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  62:<\/span>         {<\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  63:<\/span>             Thread t = <span style=\"color: rgb(0,0,255)\">new<\/span> Thread(<span style=\"color: rgb(0,0,255)\">new<\/span> ThreadStart(acc.DoTransactions));<\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: rgb(244,244,244); border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  64:<\/span>             threads[i] = t;<\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  65:<\/span>         }<\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: rgb(244,244,244); border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  66:<\/span>         <span style=\"color: rgb(0,0,255)\">for<\/span> (<span style=\"color: rgb(0,0,255)\">int<\/span> i = 0; i &lt; 10; i++)<\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  67:<\/span>         {<\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: rgb(244,244,244); border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  68:<\/span>             threads[i].Start();<\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  69:<\/span>         }<\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: rgb(244,244,244); border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  70:<\/span>     }<\/pre>\n<pre style=\"padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas,&#39;Courier New&#39;,courier,monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none\"><span style=\"color: rgb(96,96,96)\">  71:<\/span> }<\/pre>\n<\/p><\/div>\n<\/p><\/div>\n<\/div>\n<div class=\"csharpcode\" dir=\"ltr\" align=\"left\">\n<pre><span class=\"lnum\">  <\/span><style type=\"text\/css\">.csharpcode, .csharpcode pre\n{\n\tfont-size: small;\n\tcolor: black;\n\tfont-family: tahoma;\n\tbackground-color: #ffffff;\n\t\/*white-space: pre;*\/\n}\n.csharpcode pre { margin: 0em; }\n.csharpcode .rem { color: #008000; }\n.csharpcode .kwrd { color: #0000ff; }\n.csharpcode .str { color: #006080; }\n.csharpcode .op { color: #0000c0; }\n.csharpcode .preproc { color: #cc6633; }\n.csharpcode .asp { background-color: #ffff00; }\n.csharpcode .html { color: #800000; }\n.csharpcode .attr { color: #ff0000; }\n.csharpcode .alt \n{\n\tbackground-color: #f4f4f4;\n\twidth: 350px;\n\tmargin: 0em;\n}\n.csharpcode .lnum { color: #606060; }\n<\/style><\/pre>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u06cc\u06a9\u06cc \u0627\u0632 \u062e\u0635\u0648\u0635\u06cc\u0627\u062a \u062c\u0627\u0644\u0628\u06cc \u06a9\u0647 \u062f\u0631 \u0627\u06a9\u062b\u0631 \u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633 \u0647\u0627\u06cc \u0627\u06cc\u0631\u0627\u0646\u06cc \u062f\u06cc\u062f\u0647 \u0645\u06cc\u0634\u0647 \u0627\u06cc\u0646\u0647 \u06a9\u0647 \u0647\u0645\u0647 \u0686\u06cc\u0632 \u0631\u0648 \u062f\u0631 \u062d\u0627\u0644\u062a \u0627\u06cc\u062f\u0647 \u0622\u0644 \u062f\u0631 \u0646\u0638\u0631 \u0645\u06cc \u06af\u06cc\u0631\u0646 \u0648 \u0628\u0647 \u0647\u0645\u06cc\u0646 \u062f\u0644\u06cc\u0644 \u062f\u0631 \u0646\u0631\u0645 \u0627\u0641\u0632\u0627\u0631 \u0647\u0627\u06cc \u062a\u0648\u0644\u06cc\u062f \u062f\u0627\u062e\u0644 \u0639\u0644\u0627\u0648\u0647 \u0628\u0631 \u0645\u0633\u0627\u0626\u0644\u06cc \u0645\u062b\u0644 \u0646\u0627\u062f\u06cc\u062f\u0647 \u06af\u0631\u0641\u062a\u0646 \u0634\u06cc\u0621 \u06af\u0631\u0627\u06cc\u06cc \u0648&#8230; exception handling \u0631\u0648 \u0645\u06cc\u0634\u0647 \u06cc\u06a9\u06cc \u0627\u0632 \u06cc\u062a\u06cc\u0645 \u062a\u0631\u06cc\u0646 \u0645\u0648\u0636\u0648\u0639\u0627\u062a \u067e\u0631\u0648\u0633\u0647 &#8230; <a title=\"\u06a9\u0627\u0631\u0628\u0631\u062f Lock Statement\" class=\"read-more\" href=\"https:\/\/mesbahi.net\/fa\/blog\/1386\/09\/19\/%da%a9%d8%a7%d8%b1%d8%a8%d8%b1%d8%af-lock-statement\/\" aria-label=\"\u062f\u0631\u0628\u0627\u0631\u06c0 \u06a9\u0627\u0631\u0628\u0631\u062f Lock Statement \u0628\u06cc\u0634\u062a\u0631 \u0628\u062e\u0648\u0627\u0646\u06cc\u062f\">\u0627\u062f\u0627\u0645\u0647<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","footnotes":""},"categories":[2],"tags":[],"class_list":["post-791","post","type-post","status-publish","format-standard","hentry","category-net"],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"\u0627\u0645\u06cc\u0646 \u0645\u0635\u0628\u0627\u062d\u06cc","author_link":"https:\/\/mesbahi.net\/fa\/blog\/author\/amin\/"},"uagb_comment_info":0,"uagb_excerpt":"\u06cc\u06a9\u06cc \u0627\u0632 \u062e\u0635\u0648\u0635\u06cc\u0627\u062a \u062c\u0627\u0644\u0628\u06cc \u06a9\u0647 \u062f\u0631 \u0627\u06a9\u062b\u0631 \u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633 \u0647\u0627\u06cc \u0627\u06cc\u0631\u0627\u0646\u06cc \u062f\u06cc\u062f\u0647 \u0645\u06cc\u0634\u0647 \u0627\u06cc\u0646\u0647 \u06a9\u0647 \u0647\u0645\u0647 \u0686\u06cc\u0632 \u0631\u0648 \u062f\u0631 \u062d\u0627\u0644\u062a \u0627\u06cc\u062f\u0647 \u0622\u0644 \u062f\u0631 \u0646\u0638\u0631 \u0645\u06cc \u06af\u06cc\u0631\u0646 \u0648 \u0628\u0647 \u0647\u0645\u06cc\u0646 \u062f\u0644\u06cc\u0644 \u062f\u0631 \u0646\u0631\u0645 \u0627\u0641\u0632\u0627\u0631 \u0647\u0627\u06cc \u062a\u0648\u0644\u06cc\u062f \u062f\u0627\u062e\u0644 \u0639\u0644\u0627\u0648\u0647 \u0628\u0631 \u0645\u0633\u0627\u0626\u0644\u06cc \u0645\u062b\u0644 \u0646\u0627\u062f\u06cc\u062f\u0647 \u06af\u0631\u0641\u062a\u0646 \u0634\u06cc\u0621 \u06af\u0631\u0627\u06cc\u06cc \u0648&#8230; exception handling \u0631\u0648 \u0645\u06cc\u0634\u0647 \u06cc\u06a9\u06cc \u0627\u0632 \u06cc\u062a\u06cc\u0645 \u062a\u0631\u06cc\u0646 \u0645\u0648\u0636\u0648\u0639\u0627\u062a \u067e\u0631\u0648\u0633\u0647&hellip;","_links":{"self":[{"href":"https:\/\/mesbahi.net\/fa\/wp-json\/wp\/v2\/posts\/791","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mesbahi.net\/fa\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mesbahi.net\/fa\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mesbahi.net\/fa\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mesbahi.net\/fa\/wp-json\/wp\/v2\/comments?post=791"}],"version-history":[{"count":0,"href":"https:\/\/mesbahi.net\/fa\/wp-json\/wp\/v2\/posts\/791\/revisions"}],"wp:attachment":[{"href":"https:\/\/mesbahi.net\/fa\/wp-json\/wp\/v2\/media?parent=791"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mesbahi.net\/fa\/wp-json\/wp\/v2\/categories?post=791"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mesbahi.net\/fa\/wp-json\/wp\/v2\/tags?post=791"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}