Java Is the Language of Possibilities Java is powering the innovation behind our digital world. Harness this potential with Java resources for student coders, hobbyists, developers, and IT leaders.
確å®ã«ä¸å®æéã¹ãªã¼ããã - terazzoã®æ¥è¨ã§ã¯Threadã®å²ãè¾¼ã¿ããã£ã¦ã確å®ã«ä¸å®æéã®åæ¢ã試ã¿ã¦ãããããããããã®ãããªã³ã¼ãã¯æ¸ãã¦ã¯ãããªãã Thread.sleep()ã¯ä¸å®æéæ¢ã¾ãããã®ä¾¿å©ã¡ã½ããã¨ãã¦ããç¥ããã¦ãããããã®ã¨ãã«çºçããInterruptedExceptionã«ã¤ãã¦ã®ç解ã¯åºã¾ã£ã¦ããªãæ°ããããå²ãè¾¼ã¿ã¨ã¯ãªããªã®ããã©ãããæã«ä½¿ãã®ãã ç®è¦ã¾ãæè¨ ãæ¼ä¼ã¿ã«æ¼å¯ããããã¨ãããå¯éããã¨ãããªãã®ã§15åå¾ã«ã¢ã©ã¼ã ãé³´ããè¨å®ãããã ãã¦ãã²ã¨ç ãããããã¨ããã¨ããã«å人ããã£ã¦ãããæ¼å¯ã¯ããã¦å£²åºã«è¡ããã¨ã«ãããæããã¦å£²åºã§ã¢ã©ã¼ã ãé³´ãå§ããã ãã¦ããã®ã¨ããã¢ã©ã¼ã ã¯15åéã®å¾ æ©ãå½ããããããã ãã©ãããæ¼å¯ããã£ã³ã»ã«ããããã¨ã§ãããå¾ æ©ããªãã¦ãããªã£ã¦ãã¾ã£ãããããããã£ãã¨å¾ æ©ãããã¦ã
ããæ°æ¥ã®ä½è¤å çã®ã¨ã³ããªãç±ãï¼ãErlangãScalaãGoãJavaãªã©ã®ç¾ä»£ã®è¨èªï¼Erlangã¯å¤ããï¼ã«ããã並è¡å¦çã®æ±ãæ¹ã«ã¤ãã¦ãããããã®æ´å²çèæ¯ãæ義ãå¾æä¸å¾æãªã©ãããããããç´¹ä»ããã¦ã¾ãã80年代ãã並è¡å¦çããªãã¸ã§ã¯ãæåãç 究ããã¦ããä½è¤å çãªãã§ã¯ã®è¦ç¹ã§ãããã¡ãã£ã¨é·ããªãã¾ããç¹ã«ç§ãèå³æ·±ãã£ãé¨åãå¼ç¨ãã¾ãï¼å¼·èª¿ã¯ç§ï¼ï¼ ä½è¤ä¸é: Webæ¥è¨ (2010å¹´) æè¿ãèå³æ·±ãã®ã¯ãªãã¸ã§ã¯ãæåè¨èªã®ScalaãErlangã話é¡ãéãã¦ãããã¨ã§ãããããã©ã¡ããActor Modelããã¼ã¹ã«ãã¦ããããã§ããããªãã¸ã§ã¯ãæåè¨èªã®æ´å²ã§ããã¨ãActor Modelãªã©ã®ä¸¦è¡å¦çç¨ãªãã¸ã§ã¯ãæåè¨èªã®ç 究ãçãã«ãªã£ãã®ã¯1985å¹´ããã®6,7å¹´ãããã ã¨æãã¾ã(Actor Modelèªèº«ã¯ãã£ã¨å¤ãã§ãã)ãããã¦19
HashMapã®ãã«ãã¹ã¬ããã¢ã¯ã»ã¹åé¡ã¯ãããã¾ã§è²ããªè¨äºãBlogã§åãä¸ãããã¦ã¾ãã®ã§ããªãæåã§ããããä¾ãã°ä»¥ä¸ã¨ãã Threadã¨HashMapã«æ½ãç¡éåå»ã¯å®ã«é¢ç½ãï¼ (1/3) - ï¼ IT HashMapã¨ç¡éã«ã¼ãã¨synchronized - è°·æ¬ å¿ in ããé¨å± è¤æ°ã®ã¹ã¬ããããåæã«putãããã¨ãç¡éã«ã¼ãã«ãªãå¯è½æ§ãããã¨ãããã¤ã§ããã ãããgetã«å¯¾ãã¦ãåæåãå¿ è¦ã¨ããæèã¯ããããã¦ä½ãã®ã§ããããï¼ ããã¾ã§ããã¤ãã®ããã¸ã§ã¯ãã§åæ§ã®ãã°ã«åºä¼ã£ã¦ãã¾ãããçãããgetãremoveã«å¯¾ãã¦ã¯ã¡ããã¨synchronzedãããã¯ã使ããªã©ãã¦åæåãè¡ã£ã¦ãããã§ããã©ãgetã«ã¯ä½ãããã ãã®å ´åãputã¨getãéãªãã¨å¤ãåå¨ãã¦ãnullãè¿ããã¨ãããã¾ããçµæã¨ãã¦äºæãã¬åä½ãèµ·ããã¦ãã¾ãã¾ãã ããã¦
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}