第3åããã«ãã¹ã¬ããã§ãã¼ã¿ã®ä¸æ´åãé²ãããã®æä»å¶å¾¡ â ãã«ãã¹ã¬ããã»ããã°ã©ãã³ã°ã«ãããæä»å¶å¾¡ã¨åæå¶å¾¡ï¼åç·¨ï¼ âï¼é£è¼.NETãã«ãã¹ã¬ããã»ããã°ã©ãã³ã°å
¥éï¼3/3 ãã¼ã¸ï¼ lockã¹ãã¼ãã¡ã³ããããä½ã³ã¹ããªæä»å¶å¾¡ lockã¹ãã¼ãã¡ã³ãã«ããããã©ã¼ãã³ã¹ä½ä¸ã軽æ¸ãããã®ã»ãã®ã¢ããã¼ãã¨ãã¦ã¯ã.NET Frameworkã®ã¯ã©ã¹ã»ã©ã¤ãã©ãªã§ç¨æããã¦ãããInterlockedãã¨ãReaderWriterLockãã¨ããã¯ã©ã¹ã使ç¨ãããã¨ãã§ããããã®ã¯ã©ã¹ã®ä»æ§ããã使ç¨ããæ©ä¼ã¯éå®ããããããããªãããããããã£ããããå ´é¢ã§ã¯ç©æ¥µçã«æ´»ç¨ãããã次ã«ãããã2ã¤ã®ã¯ã©ã¹ã«ã¤ãã¦èª¬æãã¦ããã â ã¹ã¬ããã»ã¼ããªå¤æ°ã®æä½ãæä¾ããInterlockedã¯ã©ã¹ lockã¹ãã¼ãã¡ã³ãã¯é常ã«ã³ã¹ãã®ããããªãã¬ã¼ã·ã§ã³ã§ãããã.NETã«
{{#tags}}- {{label}}
{{/tags}}