{"id":2750,"date":"2022-02-14T19:31:53","date_gmt":"2022-02-14T11:31:53","guid":{"rendered":"https:\/\/ufqi.com\/blog\/?p=2750"},"modified":"2022-02-14T19:54:40","modified_gmt":"2022-02-14T11:54:40","slug":"gwa2-php-synchronized","status":"publish","type":"post","link":"https:\/\/ufqi.com\/blog\/gwa2-php-synchronized\/","title":{"rendered":"Synchronized\u540c\u6b65Quque\u961f\u5217Concurrency\u5e76\u53d1\u4e0e\u7ebf\u7a0b\u9501Lock"},"content":{"rendered":"\n<p>GWA2 Java\u6700\u8fd1\u505a\u4e86\u4e00\u6b21\u6838\u5fc3\u529f\u80fd\u7684\u5347\u7ea7\uff0c\u7f3a\u7701\u6a21\u5f0f\u4e0b\u4e0d\u518d\u5f00\u542f\u7528\u4e8e\u8fdb\u884c\u7ebf\u7a0b\u540c\u6b65\u63a7\u5236\u7684synchronized\u529f\u80fd\u3002<\/p>\n\n\n\n<p>\u5728\u6700\u8fd1\u4e00\u6b21\u65b0\u9879\u76ee\u7684GWA2 Java\u5f00\u53d1\u90e8\u7f72\u4e2d\uff0c\u6211\u4eec\u9700\u8981\u8c03\u8bd5\u4e00\u4e2a\u901a\u8fc7WebApp.readObject\u6765\u8bfb\u53d6\u5916\u90e8\u8d44\u6e90\u7684\u529f\u80fd\u3002\u7531\u4e8e\u9700\u6c42\u6d89\u53ca\u5230\u8bfb\u53d6\u4e00\u4e2a\u8f83\u957f\u7684\u8d44\u6e90\u5217\u8868\uff0c\u6211\u4eec\u5c31\u8bbe\u8ba1\u4e86\u4e00\u4e2a\u81ea\u52a8\u7a0b\u5e8f\uff0c\u5faa\u73af\u8f6e\u8be2\u57fa\u4e8eGWA2 Java\u7684API\u63a5\u53e3\u3002\u4e00\u5207\u8fdb\u5c55\u987a\u5229\uff0c\u4f46\u7a0b\u5e8f\u5076\u5c14\u4f1a\u51fa\u73b0\u8d85\u65f6\u7684\u73b0\u8c61\u3002<\/p>\n\n\n\n<p>\u8d77\u521d\u6211\u4eec\u6000\u7591\u662fWebApp.readObject\u7684\u65b9\u6cd5\u4e2d\u6ca1\u6709\u9650\u5236timeOut\uff0c\u5bfc\u81f4\u8bfb\u53d6\u5916\u90e8\u8d44\u6e90\u65f6\u5361\u58f3\uff0c\u8fdb\u800c\u5f71\u54cd\u5230GWA2 Java\u5e94\u7b54\u5916\u90e8\u9700\u6c42\u3002\u6211\u4eec\u5373\u5bf9\u8bfb\u53d6\u5916\u90e8\u7684URLConnection\u65b9\u6cd5\u8bbe\u7f6e\u4e86 setConnectionTimeout\u548csetReadTimeout\u4e24\u4e2a\u9650\u5236\u65f6\u957f\u7684\u64cd\u4f5c\u3002\u8fd9\u4e00\u6539\u8fdb\u4e5f\u5f88\u5feb\u5f97\u5230\u9a8c\u8bc1\uff0c\u90e8\u5206\u8bf7\u6c42\u786e\u5b9e\u4f1a\u89e6\u53d1timeOut\uff0c\u6839\u636e\u9700\u6c42\u9002\u5f53\u5ef6\u957f\u8fd9\u4e2a\u9650\u5236\u5373\u53ef\u3002<\/p>\n\n\n\n<p>\u7136\u800c\u95ee\u9898\u4ecd\u7136\u5076\u5c14\u8fd8\u4f1a\u51fa\u73b0\uff0c\u5c3d\u7ba1\u6211\u4eec\u5c06\u8f6e\u8be2API\u7684\u8fdb\u7a0b\u6539\u4e3a\u4e00\u4e2a\uff0c\u8f6e\u8be2\u65f6\u95f4\u95f4\u9694\u5982\u679c\u7a0d\u5fae\u7f29\u77ed\u4e00\u70b9\uff0c\u53ef\u80fd\u5c31\u4f1a\u51fa\u73b0\u5361\u58f3\u3002\u95ee\u9898\u4e00\u8defnarrow-down\u4e0b\u6765\uff0c\u5c31\u9501\u5b9a\u5728\u4e86\u7a0b\u5e8f\u6267\u884c\u4e0a\uff0c\u5f53\u524d\u4e00\u6b21\u7684\u8f6e\u8be2\u6ca1\u6709\u5b8c\u6210\uff0c\u5c31\u89e6\u53d1\u4e0b\u4e00\u6b21\u8f6e\u8be2\u65f6\uff0c\u4e0b\u4e00\u6b21\u7684\u8f6e\u8be2\u4f1a\u5929\u7136\u5730\u589e\u52a0\u7b49\u5f85\u65f6\u957f\u3002\u76f8\u5f53\u4e8e\u57fa\u4e8e\u591a\u7ebf\u7a0b\u3001\u591a\u8fdb\u7a0b\u7684Apache+Tomcat\u53d8\u6210\u4e86\u5355\u7ebf\u7a0b\u670d\u52a1\u3002\u66f4\u4e3a\u4e25\u91cd\u7684\u8868\u8c61\u65f6\uff0c\u5f53API\u5e94\u7b54\u7a0b\u5e8f\u5728\u5904\u7406\u5916\u90e8\u8d44\u6e90\u8bf7\u6c42\u65f6\uff0c\u5176\u4ed6\u6240\u6709\u540c\u4e00\u5e94\u7528\u7a0b\u5e8f\u63a5\u53e3\u4e5f\u4e00\u5e76\u88ab\u60ac\u505c\uff0c\u76f4\u81f3\u6700\u540eTimeout\/504.<\/p>\n\n\n\n<p>\u95ee\u9898\u5c31\u4e0d\u662f\u5f53\u524dAPI\u63a5\u53e3\u95ee\u9898\u4e86\uff0c\u8fdb\u4e00\u6b65\u7684\u5206\u6790\uff0c\u6211\u4eec\u5c06\u6545\u969c\u5b9a\u4f4d\u5728\u6b64\u524d\u67d0\u6b21\u67d0\u4e2a\u9879\u76ee\u7684\u6570\u636e\u5b89\u5168\u6027\u6838\u67e5\u65f6\uff0c\u53d1\u73b0\u6ca1\u6709\u6570\u636e\u5171\u4eab\/\u8fdb\u7a0b\u5b89\u5168\u7684\u8bbe\u7f6e\uff0c\u5c31\u5728GWA2 Java\u7684\u5165\u53e3\u7a0b\u5e8f\u8bbe\u7f6e\u4e86Synchronized(this) \u5173\u952e\u8bcd\u7ea6\u675f\u2014\u2014\u8fd9\u6837\uff0c\u6574\u4e2aApplication\u5e94\u7528\u5c06\u53d8\u5f97\u975e\u5e38\u5b89\u5168\uff0c\u53ea\u662f\u6027\u80fd\u4e0a\u4e0d\u518d\u652f\u6301\u5e76\u53d1\u8bf7\u6c42\uff0c\u6240\u6709\u8bf7\u6c42\u5fc5\u9700\u5355\u961f\u5217\u9010\u4e2a\u5904\u7406\u3002<\/p>\n\n\n\n<p>\u901a\u5e38\u5728\u4e00\u822c\u60c5\u51b5\u4e0b\uff0c\u5982\u6b64\u5b89\u5168\u7684\u8bbe\u7f6e\u548c\u4e0d\u652f\u6301\u5e76\u53d1\u8bf7\u6c42\u5e76\u4e0d\u4f1a\u7acb\u5373\u663e\u73b0\u51fa\u6765\u3002\u8fd9\u662f\u56e0\u4e3aGWA2 Java\u7684\u5e94\u7528\u5f00\u53d1\u4ea4\u4ed8\u540e\uff0c\u591a\u9700\u8981\u6bcf\u4e2a\u8bf7\u6c42\u5728\u6570\u4e2a\u6beb\u79d2\u7ea7\u5185\u5904\u7406\u5b8c\u6210\uff0c\u4e5f\u5373\u7528\u6237\u80fd\u611f\u77e5\u5230\u76842-3\u79d2\u5185\uff0cGWA2 Java\u5e94\u7528\u7a0b\u5e8f\u5df2\u7ecf\u987a\u5e8f\u5730\u5b8c\u6210\u4e86\u51e0\u5341\u5230\u51e0\u767e\u4e2a\u961f\u5217\u8bf7\u6c42\u4e86\u3002\u8fd9\u51e0\u767e\u4e2a\u201c\u540c\u65f6&#8221;\u5b8c\u6210\u7684\u8bf7\u6c42\uff0c\u7ed9\u7ec8\u7aef\u7528\u6237\u751a\u81f3\u662f\u5f00\u53d1\u8005\u4ee5\u652f\u6301\u201c\u5e76\u53d1Concurrency\u201d\u7684\u5047\u8c61\u3002\u8fd9\u6837\u4ee5\u6765\uff0c\u67d0\u6b21\u66f4\u65b0GWA2 Java\u65f6\uff0c\u52a0\u5165\u7684 Synchronized\u7684\u7ea6\u675f\u5c45\u7136\u4e00\u76f4\u4f7f\u7528\u5230\u73b0\u5728\uff0c\u76f4\u5230\u6211\u4eec\u5728\u6d4b\u8bd5\u80b2\u6709\u8d85\u65f6\u7684\u7a0b\u5e8f\u5f15\u53d1\u7684GWA2 Java\u4e0d\u80fd\u53ca\u65f6\u5728\u6beb\u79d2\u7ea7\u5b8c\u6210\u4efb\u52a1\u7684\u7279\u6b8a\u60c5\u51b5\u4e0b\uff0c\u624d\u89e6\u53d1\u6211\u4eec\u8fdb\u4e00\u6b65\u5206\u6790\u548c\u5b8c\u5584\u8fd9\u4e00\u6f5c\u5728\u7684\u6f0f\u6d1e\uff08Bug\uff09\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ufqi.com\/blog\/wp-content\/uploads\/2022\/02\/\u7ebf\u7a0b\u9501.png\"><img loading=\"lazy\" width=\"608\" height=\"375\" src=\"https:\/\/ufqi.com\/blog\/wp-content\/uploads\/2022\/02\/\u7ebf\u7a0b\u9501.png\" alt=\"\" class=\"wp-image-2751\" srcset=\"https:\/\/ufqi.com\/blog\/wp-content\/uploads\/2022\/02\/\u7ebf\u7a0b\u9501.png 608w, https:\/\/ufqi.com\/blog\/wp-content\/uploads\/2022\/02\/\u7ebf\u7a0b\u9501-300x185.png 300w\" sizes=\"(max-width: 608px) 100vw, 608px\" \/><\/a><figcaption>fig1.\u5e94\u7528\u7a0b\u5e8f\u591a\u7ebf\u7a0b\u4e0b\u7684\u7ebf\u7a0b\u9501<\/figcaption><\/figure>\n\n\n\n<p>\u63a5\u7740\u8fd9\u4e2a\u673a\u4f1a\uff0c\u6211\u4eec\u60f3\u6df1\u5165\u590d\u4e60\u4e00\u4e0bSynchronized\u540c\u6b65Quque\u961f\u5217Concurrency\u5e76\u53d1\u4e0e\u7ebf\u7a0b\u9501Lock\u3002\u7531\u4e8e\u8f6f\u4ef6\u5f00\u53d1\u7684\u4e3b\u6d41\u9010\u6e10\u6b65\u5165\u4ee5\u7ebf\u7a0b\u4e3a\u5355\u4f4d\uff0c\u6211\u4eec\u5728\u7f51\u4e0a\u627e\u5230\u4e00\u5f20\u63cf\u8ff0\u7ebf\u7a0b\u95f4\u83b7\u53d6\u5171\u4eab\u8d44\u6e90\u7684\u6d41\u7a0b\u793a\u610f\u56fe\uff08\u5982\u4e0a\u56fefig1.)\u3002\u5c3d\u7ba1\u8fd9\u4e9b\u540d\u8bcd\u6709\u4e9b\u62bd\u8c61\uff0c\u6211\u4eec\u53ef\u4ee5\u62ff\u4e00\u4e2a\u5177\u8c61\u7684\u4e1c\u897f\u6765\u8bf4\u660e\u8fd9\u91cc\u7684\u6765\u9f99\u53bb\u8109\u3002\u6bd4\u5982\u9ad8\u901f\u516c\u8def\u4e0a\u7684\u6536\u8d39\u7ad9\uff08\u5982\u4e0b\u56fefig2.\uff09\uff0c\u6536\u8d39\u670d\u52a1\u5c31\u53ef\u4ee5\u89c6\u4e3a\u4e00\u4e2a\u7f51\u7edc\u5e94\u7528\u670d\u52a1\uff0c\u6bcf\u4e00\u4e2a\u6536\u8d39\u53e3\u5c31\u662f\u4e00\u4e2a\u5e94\u7528\u670d\u52a1\u7684\u5b9e\u4f8b\u6216\u8fdb\u7a0b\uff0c\u800c\u6bcf\u4e00\u4e2a\u95f8\u673a\u53e3\u5c31\u4e00\u4e2a\u5904\u7406\u7ebf\u7a0b\u3002\u6709\u4e00\u4e2a\u95f8\u673a\u53e3\u7684\u5c31\u662f\u5355\u7ebf\u7a0b\uff0c\u6709\u591a\u4e2a\u95f8\u673a\u53e3\u7684\u5c31\u662f\u591a\u7ebf\u7a0b\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/ufqi.com\/blog\/wp-content\/uploads\/2022\/02\/highway-toll-gate.webp\"><img loading=\"lazy\" width=\"1024\" height=\"576\" src=\"https:\/\/ufqi.com\/blog\/wp-content\/uploads\/2022\/02\/highway-toll-gate-1024x576.webp\" alt=\"\" class=\"wp-image-2752\" srcset=\"https:\/\/ufqi.com\/blog\/wp-content\/uploads\/2022\/02\/highway-toll-gate-1024x576.webp 1024w, https:\/\/ufqi.com\/blog\/wp-content\/uploads\/2022\/02\/highway-toll-gate-300x169.webp 300w, https:\/\/ufqi.com\/blog\/wp-content\/uploads\/2022\/02\/highway-toll-gate-768x432.webp 768w, https:\/\/ufqi.com\/blog\/wp-content\/uploads\/2022\/02\/highway-toll-gate.webp 1200w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption>fig.2\u9ad8\u901f\u516c\u8def\u6536\u8d39\u53e3\u591a\u901a\u9053\u5e76\u884c<\/figcaption><\/figure>\n\n\n\n<p>\u6536\u8d39\u53e3\u7684\u7ebf\u7a0b\uff08\u95f8\u673a\u53e3\uff09\u662f\u591a\u4e2a\u5e76\u884c\uff0c\u8fd9\u5f88\u663e\u7136\u7684\u662f\u80fd\u591f\u63d0\u5347\u901a\u884c\u6548\u7387\uff0c\u800c\u4e14\u7ebf\u7a0b\u540c\u65f6\u5f00\u5f97\u7ebf\u7a0b\u8d8a\u591a\uff0c\u901a\u884c\u8d8a\u5feb\u3002\u8fd9\u4e5f\u662f\u591a\u8fdb\u7a0b\u591a\u7ebf\u7a0b\u6210\u4e3a\u4e3b\u6d41\u7684\u5173\u952e\u4e4b\u4e00\u3002\u8fd9\u662f\u7406\u60f3\u72b6\u6001\uff0c\u4e5f\u662f\u9ed8\u8ba4\u7684\u5e76\u884c\u5904\u7406\u7ed3\u679c\u3002\u56e0\u4e3a\u6bcf\u4e2a\u95f8\u673a\u53e3\u5728\u5904\u7406\u8bf7\u6c42\u901a\u884c\u65f6\uff0c\u4e0d\u9700\u8981\u5f7c\u6b64\u201c\u95ee\u8be2\u201d\u6216\u8005\u201c\u4ea4\u4e92\u201d\uff0c\u5404\u4e2a\u53ef\u4ee5\u72ec\u7acb\u81ea\u4e3b\u5730\u5b8c\u6210\u3002\u7528\u6237\u8ba1\u7b97\u673a\u672f\u8bed\u8bf4\u662f\u4e0d\u4e0d\u8981\u5904\u7406\u201c\u5171\u4eab\u8d44\u6e90\u201d\uff0c\u4e5f\u4e0d\u9700\u8981\u9501\u4ec0\u4e48\u7684\u3002<\/p>\n\n\n\n<p>\u5982\u679c\u6211\u4eec\u4eba\u4e3a\u7684\u8bbe\u7f6e\u4e00\u4e2a\u201c\u5171\u4eab\u8d44\u6e90\u201d\uff0c\u60c5\u51b5\u4f1a\u600e\u6837\uff1f\u6bd4\u5982\u8fd9\u6240\u6709\u7684\u7ebf\u7a0b\uff08\u95f8\u673a\u53e3\uff09\u53ea\u6709\u4e00\u628a\u94a5\u5319\u80fd\u5f00\uff0c\u6bcf\u4e2a\u7ebf\u7a0b\u5b8c\u6210\u8ba1\u8d39\u3001\u6536\u8d39\u540e\u901a\u77e5\u8fd9\u8fb9\u94a5\u5319\u53bb\u5f00\u95f8\u653e\u884c\u3002\u8fd9\u5c31\u662f\u5178\u578b\u7684\u591a\u7ebf\u7a0b\u79d2\u53d8\u5355\u7ebf\u7a0b\u4e86\uff0c\u5b8c\u6210\u6536\u8d39\u540e\u7684\u7ebf\u7a0b\u9700\u8981\u7b49\u7b49\u5f00\u95f8\u673a\u7684\u94a5\u5319\uff0c\u7136\u540e\u518d\u624d\u80fd\u670d\u52a1\u4e0b\u4e00\u4e2a\u8bf7\u6c42\u3002\u8fd9\u4e2a\u5f00\u95f8\u673a\u7684\u201c\u94a5\u5319\u201d\u5c31\u662ffig1.\u4e2d\u7684\u201c\u9501\u201d\u3002<\/p>\n\n\n\n<p>\u53ea\u6709\u4e00\u628a\u94a5\u5319\u7684\u60c5\u51b5\u662f\u865a\u62df\u7684\uff0c\u73b0\u5b9e\u751f\u6d3b\u4e2d\u53ef\u80fd\u4e0d\u5b58\u5728\u3002\u4f46\u6838\u67e5\u8f66\u8f86\u662f\u5426\u5408\u6cd5\u3001\u53f8\u673a\u662f\u5426\u8fdd\u7ae0\u662f\u786e\u5b9e\u5b58\u5728\u7684\u9700\u6c42\uff0c\u6bd4\u5982\u518d\u591a\u7684\u95f8\u673a\u53e3\u90fd\u9700\u8981\u7edf\u4e00\u8bf7\u6c42\u5230\u4ea4\u901a\u4e2d\u592e\u6570\u636e\u5e93\u53bb\u6bd4\u5bf9\u8f66\u8f86\u8bb0\u5f55\u3001\u53f8\u673a\u8bb0\u5f55\uff0c\u7136\u540e\u7b49\u5f85\u53cd\u9988\u7ed3\u679c\u3002\u5728\u4e16\u754c\u7684\u53e6\u4e00\u9762\uff0c\u4ea4\u901a\u8b66\u5bdf\u6267\u6cd5\u7b49\u5728\u4e0d\u505c\u5730\u5411\u6570\u636e\u5e93\u4e2d\u5199\u5165\u3001\u66f4\u65b0\u8fdd\u6cd5\u3001\u8fdd\u7ae0\u8bb0\u5f55\u3002\u5f53\u4e00\u7b14\u5199\u5165\u53d1\u751f\u65f6\uff0c\u6240\u6709\u7684\u8bfb\u53d6\u8bbf\u95ee\uff0c\u90fd\u8981\u88ab\u201c\u60ac\u505c\u201d\u7b49\u5f85\uff0c\u8fd9\u5c31\u662f\u201c\u9501\u201d\u3002<\/p>\n\n\n\n<p>\u7531\u662f\u53ef\u89c1\uff0c\u8fd9\u540c\u6b65\u4e0e\u5e76\u53d1\u5b58\u5728\u77db\u76fe\uff0c\u4e3a\u4e86\u51cf\u7f13\u8fd9\u79cd\u77db\u76fe\uff0c\u6536\u8d39\u53e3\u95f8\u673a\u53e3\u53ef\u80fd\u7f13\u5b58\u4ea4\u901a\u4e2d\u592e\u6570\u636e\u5e93\u7684\u6570\u636e\uff0c\u7528\u4e00\u6bb5\u65f6\u95f4\u518d\u505a\u4e00\u6b21\u66f4\u65b0\uff0c\u505a\u5230\u201c\u51c6\u5b9e\u65f6\u201d\uff08\u53ca\u65f6\uff0cin-time)\uff0c\u800c\u975e\u201c\u771f\u5b9e\u65f6\u201d(\u51c6\u5b9e\uff0creal-time). \u5728\u60ca\u5fc3\u52a8\u9b44\u7684\u9003\u4ea1\u7c7b\u7535\u5f71\u60c5\u8282\u4e2d\u6211\u4eec\u5076\u5c14\u80fd\u770b\u5230\uff0c\u7537\u4e3b\u5973\u4e3b\u82e6\u4e3b\u521a\u521a\u901a\u8fc7\u673a\u573a\u767b\u673a\u53e3\u95f8\u673a\uff0c\u8fb9\u68c0\u5458\u7684\u5c4f\u5e55\u4e0a\u5c31\u663e\u793a\u51fa\u65b0\u63a8\u9001\u5230\u7684\u82e6\u4e3b\u4f5c\u4e3a\u72af\u7f6a\u5acc\u7591\u4eba\u7684\u8d44\u6599\u3002<br \/>\u5728\u7ebf\u7f51\u7edc\u670d\u52a1\u4e2d\uff0c\u7528\u5f97\u8f83\u591a\u7684\u9700\u8981\u540c\u6b65\u63a7\u5236\u7684\u201c\u5171\u4eab\u8d44\u6e90\u201d\u7684\u573a\u666f\uff0c\u5982\u7535\u5546\u7f51\u7ad9\u7684\u5e93\u5b58\uff0c\u5e93\u5b58\u6570\u636e\u662f\u6bcf\u7b14\u4ea4\u6613\u540e\u90fd\u9700\u8981\u66f4\u65b0\uff0c\u5f53\u6709\u66f4\u65b0\u53d1\u751f\u65f6\uff0c\u5fc5\u987b\u8fdb\u884c\u67b7\u9501\u64cd\u4f5c\uff0c\u4ee5\u4f7f\u5f97\u5f53\u524d\u6709\u4e14\u4ec5\u6709\u4e00\u4e2a\u7ebf\u7a0b\u5728\u64cd\u4f5c\u6570\u636e\uff0c\u4ece\u800c\u907f\u514d\u4e86\u201c\u4e00\u8d27\u4e24\u5356\u201d\u7684\u9519\u8bef\u3002<\/p>\n\n\n\n<p>\u540c\u6b65\u3001\u5e76\u53d1\u548c\u9501\u7684\u95ee\u9898\u4e0d\u72ec\u5728Java\u4e2d\uff0c\u5728GWA2 PHP\u4e5f\u4f1a\u6d89\u53ca\u5230\u3002\u6240\u4e0d\u540c\u7684\u662fPHP\u7684Synchronized\u7684\u63a7\u5236\uff0c\u65e2\u6709\u7cfb\u7edf\u5730\u7684PThread\u5bf9\u8c61\u7ec4\u4ef6\uff0c\u4e5f\u6709\u5fae\u89c2flock\u65b9\u6cd5\u51fd\u6570\u3002<\/p>\n\n\n\n<p>\u53ea\u8c08\u8bbe\u8ba1\u601d\u60f3\u548c\u5b9e\u73b0\u601d\u8def\uff0c\u5df2\u7ecf\u6784\u6210\u4e00\u7bc7\u535a\u5ba2Blog, \u5c45\u7136\u6ca1\u6709\u4efb\u4f55\u793a\u4f8b\u4ee3\u7801\u8865\u8d34\u51fa\u6765\u3002\u6240\u5e78\u65e0\u8bba\u662fJava\uff0c\u8fd8\u662fPHP\u6216\u8005 GWA2 Perl, GWA2 Python\u7b49\uff0c\u90fd\u80fd\u591f\u8f7b\u6613\u5730\u7684\u901a\u8fc7\u641c\u7d22\u5f15\u64ce\u627e\u5230\u7f16\u5199\u826f\u597d\u7684\u5173\u4e8esynchronization\u540c\u6b65\u548cConcurrency\u5e76\u53d1\u7684\u793a\u4f8b\u4ee3\u7801\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator\" \/>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/ufqi.com\/blog\/wp-content\/uploads\/2020\/08\/gwa2-logo-202005.v3.png\" alt=\"\" \/><figcaption>GWA2<\/figcaption><\/figure>\n\n\n\n<p><a href=\"https:\/\/ufqi.com\/dev\/gwa2\/\">-GWA2 \u5409\u5a03\u5154<\/a>&nbsp;\u662f\u201d\u901a\u7528\u7f51\u7edc\u5e94\u7528\u67b6\u6784( General Web Application Architeture,&nbsp;https:\/\/ufqi.com\/dev\/gwa2\/ )\u201d\uff0c\u57fa\u4e8e -GWA2 \u53ef\u4ee5\u8f7b\u4fbf\u6784\u5efa\u5404\u79cd\u7f51\u7edc\u5e94\u7528\u7a0b\u5e8f,<br \/>\u5305\u62ec\u590d\u6742\u7684\u5728\u7ebf\u8d2d\u7269\u5546\u57ce\u3001\u5728\u7ebf\u533b\u7597\u3001\u5728\u7ebf\u6559\u80b2\u3001 \u65c5\u6e38\u4ea4\u6613\u5e73\u53f0\u3001\u793e\u7fa4\u6216\u8005\u793e\u4ea4\u7f51\u7ad9\u548c\u65b0\u95fb\u8d44\u8baf\u7f51\u7ad9\u7b49\uff0c<br \/>\u4e5f\u5305\u62ec\u5404\u79cd\u4f01\u4e8b\u4e1a\u5355\u4f4d\u7f51\u4e0a\u95e8\u6237\uff0c\u5728\u7ebf\u4ea4\u4e92\u53ca\u670d\u52a1\u4f5c\u4e1a\u7cfb\u7edf\u7b49.<br \/>\u8fd8\u53ef\u4ee5\u5305\u62ec\u4e3aNativeApp\u505a\u670d\u52a1\u5668\u7aef\u652f\u6301, \u751a\u81f3\u662fWebApp\u7684\u5168\u90e8.<br \/>-GWA2 \u662f\u4e3a\u6570\u4e0d\u591a\u7684\u652f\u6301\u8de8\u5f00\u53d1\u8bed\u8a00\u7684\u5e94\u7528\u6846\u67b6\uff0c\u76ee\u524d\u652f\u6301 -Java, -PHP, -Perl, -Aspx and -Python .<\/p>\n\n\n\n<p>-GWA2 is a \u201cGeneral Web Application Architecture\u201d and based on -GWA2 developers can easily build a variety of network applications,<br \/>including complex online shopping malls, online medical services, online teaching, travel trading platforms, community or social networking sites and news information sites, etc.<br \/>Also the applications include various online portals of enterprises and institutions, online interaction and service operations systems.<br \/>Moreover it contains server-side support for Native App, or even all of the WebApp.<br \/>-GWA2 is one of the web frameworks which provide cross-language support for -Java, -PHP, -Perl, -Aspx and -Python at present.<\/p>\n\n\n\n<p><strong>-GWA2 is E.A.S.Y\u00a0<\/strong><br \/><strong>Easy Along, Swift Yield<br \/><\/strong>\u8f7b\u677e\u542f\u52a8, \u5feb\u901f\u4ea7\u51fa.<\/p>\n\n\n\n<p>\u672c\u9875\u5730\u5740\uff1a https:\/\/ufqi.com\/blog\/gwa2-php-synchronized\/ \uff0c <strong><a rel=\"noreferrer noopener\" href=\"https:\/\/ufqi.com\/naturedns\/search?q=-R\/T2ST\" target=\"_blank\">-R\/T2ST<\/a><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>GWA2 Java\u6700\u8fd1\u505a\u4e86\u4e00\u6b21\u6838\u5fc3\u529f\u80fd\u7684\u5347\u7ea7\uff0c\u7f3a\u7701\u6a21\u5f0f\u4e0b\u4e0d\u518d\u5f00\u542f\u7528\u4e8e\u8fdb\u884c\u7ebf\u7a0b\u540c\u6b65 &hellip; <a href=\"https:\/\/ufqi.com\/blog\/gwa2-php-synchronized\/\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":2751,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[42,6,2],"tags":[86,309,472,117,473,474],"_links":{"self":[{"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/posts\/2750"}],"collection":[{"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/comments?post=2750"}],"version-history":[{"count":3,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/posts\/2750\/revisions"}],"predecessor-version":[{"id":2756,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/posts\/2750\/revisions\/2756"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/media\/2751"}],"wp:attachment":[{"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/media?parent=2750"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/categories?post=2750"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/tags?post=2750"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}