{"status":true,"html":"<div class=\"panel panel-default \">\n    <div class=\"panel-body\">\n        <!-- \u95ee\u7b54\u6539\u7248\u8be6\u60c5 start -->   \n        <div class=\"new-ask-box\">\n            <div class=\"class-breadcrumb\">\n                <div class=\"pull-right\"><a href=\"\/Course\/CourseThread\/latestBlockAction\/id\/13784\/center\/0\" class=\"btn btn-link btn-sm ajaxLoad mts thread-list-back\"><i class=\"fa fa-reply mrs\"><\/i>\u8fd4\u56de<\/a><\/div>\n                <ol class=\"breadcrumb mbm\">\n                    <li><a href=\"\/Course\/CourseThread\/latestBlockAction\/id\/13784\/center\/0\" class=\"thread-list-back\">\u8bfe\u7a0b\u95ee\u7b54<\/a><\/li>\n                    <li class=\"active\">\u95ee\u7b54\u8be6\u60c5<\/li>\n                <\/ol>\n            <\/div>\n            <!-- \u95ee\u9898\u8be6\u60c5 start -->\n<div class=\"ask-details-con\">\n    <div class=\"a-user-pic pull-left\">\n        <a href=\"###\">\n            <a class=\"user-link user-avatar-link pull-right thread-author-avatar\"\n       href=\"\/User\/User\/showAction\/id\/116043\/center\/0\">\n        <img src=\"\/Public\/files\/wyzcuser\/32739\/small.jpg?5.1.4\" loaderrimg=\"1\"\n             onerror=\"javascript:this.src='\/Public\/assets\/img\/default\/pic-error.png?5.1.4';\">\n    <\/a>\n            <!-- \u5b66\u751f\u8eab\u4efd\u5c0f\u56fe\u6807 -->\n            <i class=\"sm-userpic sm-user-student\"><\/i>\n        <\/a>\n    <\/div>\n    <div class=\"ask-media-body\">\n        <div class=\"a-uesr-info\">\n            <div class=\"pull-right text-normal\">\n                                <span class=\"text-muted mlm\"><i class=\"glyphicon glyphicon-time mrs\"><\/i>2014-01-21 11:09:42<\/span>\n            <\/div>\n                <div class=\"a-user-name\"><a href=\"###\">\u4f55\u7490<\/a><span class=\"text-muted text-normal\">[\u672c\u8bfe\u7a0b\u7528\u6237\u7684\u63d0\u95ee]<\/span><\/div>\n        <\/div>\n        <div class=\"ask-content modal-body\" data-status=\"canPost\" data-limit=\"0\">\n          <h3>\u600e\u4e48\u7b49\u5f85\u4e00\u4e2a\u7ebf\u7a0b\u7ed3\u675f?\u5e0c\u671b\u7b49\u5f85\u7684\u8fc7\u7a0b\u4e2d\u754c\u9762\u4e0d\u80fd\u5361\u6b7b<\/h3>\n          <p><span style=\"color:#999999\">\u5373\u70b9\u4e86\u4e00\u4e2a\u6309\u94ae\u540e,\u5f00\u542f\u7ebf\u7a0ba,a\u5e72\u4e00\u4e9b\u6d3b\u540e,\u4e3b\u7ebf\u7a0b\u63a5\u7740\u5e72\u6d3b.\u6211\u6240\u77e5\u9053join();<br>Thread thread = new SomeThread();<br>thread.start();<br>thread.join();<br>System.out.println(&quot;finish&quot;);<br>\u4f46\u662f\u4e0a\u9762\u7684\u95ee\u9898\u662f\u5728\u6211join\u7684\u8fc7\u7a0b\u4e2d,\u754c\u9762\u662f\u5361\u4f4f\u4e86\u7684?<br>\u7ebf\u7a0b\u4e0d\u5e72\u5b8c\u6d3b,\u90fd\u4e0d\u4f1a\u51fa\u6765..<br>\u5728windows\u4e0b,\u6211\u91c7\u53d6\u7684\u65b9\u5f0f\u662f\u622a\u83b7\u6d88\u606f,\u5e76\u5904\u7406,\u4e0d\u77e5\u9053java\u4e0b\u6709\u6ca1\u5bf9\u5e94\u7684\u903b\u8f91<br><span style=\"white-space:pre\">\t<\/span>bool join() {<br><span style=\"white-space:pre\">\t\t<\/span>DWORD exitCode;<br><span style=\"white-space:pre\">\t\t<\/span>if(GetExitCodeThread(hThread, &amp;exitCode) &amp;&amp; exitCode == STILL_ACTIVE) {<br><span style=\"white-space:pre\">\t\t\t<\/span>DWORD dwRet = 0;<br><span style=\"white-space:pre\">\t\t\t<\/span>MSG msg;<span style=\"white-space:pre\">\t\t\t<\/span><br><span style=\"white-space:pre\">\t\t\t<\/span>while(TRUE) {<br><span style=\"white-space:pre\">\t\t\t\t<\/span>\/\/using MsgWaitForMultipleObjects instead of WaitForSingleObject.<br><span style=\"white-space:pre\">\t\t\t\t<\/span>\/\/because of invoking SendMessage in thread.<br><span style=\"white-space:pre\">\t\t\t\t<\/span>\/\/otherwise, it will block the thread.<br><span style=\"white-space:pre\">\t\t\t\t<\/span>dwRet = MsgWaitForMultipleObjects(1, &amp;hThread, FALSE, INFINITE, QS_ALLINPUT);&nbsp;<br>\/\/fixed by rene\/2012-04-05<span style=\"white-space:pre\">\t\t\t\t<\/span><br><span style=\"white-space:pre\">\t\t\t\t<\/span>if(dwRet == WAIT_OBJECT_0 + 1) {<br><span style=\"white-space:pre\">\t\t\t\t\t<\/span>while(PeekMessage(&amp;msg, NULL, 0, 0, PM_REMOVE)) { \/\/fixed by rene\/2012-04-05<br><span style=\"white-space:pre\">\t\t\t\t\t\t<\/span>TranslateMessage(&amp;msg);<br><span style=\"white-space:pre\">\t\t\t\t\t\t<\/span>DispatchMessage(&amp;msg);<br><span style=\"white-space:pre\">\t\t\t\t\t<\/span>}<br><span style=\"white-space:pre\">\t\t\t\t\t<\/span>continue;<br><span style=\"white-space:pre\">\t\t\t\t<\/span>}<br><span style=\"white-space:pre\">\t\t\t\t<\/span>break;<br><span style=\"white-space:pre\">\t\t\t<\/span>}<br><span style=\"white-space:pre\">\t\t<\/span>}<br><span style=\"white-space:pre\">\t\t<\/span><br><span style=\"white-space:pre\">\t\t<\/span>return true;<br><span style=\"white-space:pre\">\t<\/span>}<br>\u627e\u5230\u4e00\u4e2a\u7c7b<br>Handler<br>\u5b83\u6709\u51fd\u6570dispatchMessage, handleMessage, \u4f46\u6ca1\u6709PeekMessage\u8fd9\u7c7b\u51fd\u6570,\u90a3\u600e\u4e48\u7528\u5b83\u6765\u622a\u83b7\u6d88\u606f\u5462?<\/span><\/p>\n        <\/div>\n        <div class=\"topics-details-bot clearfix\">\n            \n                <div class=\"pull-right\">\n                    <span class=\"ask-hover pull-left text-normal hidden\">  <!-- \u9f20\u6807\u5212\u8fc7\u540e\u663e\u793a -->\n                        <a href=\"###\" id=\"jubao\">\u4e3e\u62a5<\/a>\n                    <\/span>\n                    <a href = \"javascript:;\" class=\"alink text-normal mlm\" data-role=\"confirm-btn\"\n                       data-cancel-url=\"\/Course\/CourseThread\/uncollectAction\/courseId\/13784\/id\/2595\/center\/0\"\n                       data-set-url=\"\/Course\/CourseThread\/collectAction\/courseId\/13784\/id\/2595\/center\/0\"\n                       data-cancel-confirm-msg=\"\u4f60\u786e\u5b9a\u8981\u53d6\u6d88\u8be5\u6536\u85cf\u5417\uff1f\"\n                       data-set-confirm-msg=\"\u4f60\u786e\u5b9a\u8981\u6536\u85cf\u8be5\u95ee\u9898\u5417\uff1f\">\n                                                    <i class=\"glyphicon glyphicon-star-empty set\"><\/i>\u6536\u85cf\n                                            <\/a>\n                        <a href=\"#huida\"><button type=\"button\" class=\"btn btn-sm btn-primary mlm post-btn\" id=\"scrollPost\" disabled>\u56de\u7b54<\/button><\/a>\n                    <a class=\"btn btn-sm btn-wireframe mlm\" href=\"javascript:void(0)\">\n                        <i class=\"glyphicon  glyphicon-heart-empty  mrs\"><\/i><span class='course_threadApprise' data-appraiseid='course_thread2595' data-type='course_thread'  data-vcode='2438a8a314b2eaf0'>0\u4eba\u8d5e<\/span>\n                    <\/a>\n                <\/div>\n            \n                    <\/div>\n    <\/div>\n<\/div>\n<!-- \u95ee\u9898\u8be6\u60c5 end -->  \n\n<!-- \u5168\u90e8\u56de\u7b54 start -->\n\n<div class=\"answer-details-con\">\n    <h2>\n        <!-- \u62a2\u5360\u7b54\u9898\u5012\u8ba1\u65f6 -->\n    <span class=\"answer-remind text-danger pull-right\" id=\"grabMode\" data-url=\"\/Course\/CourseThread\/grabModeAction\/courseId\/13784\/id\/2595\/center\/0\" ><\/span> \n    \u5168\u90e8\u56de\u7b54<span>\uff08<em>0<\/em>\uff09<\/span>\n    <\/h2>\n    <div id=\"postListContent\" data-url=\"\/Course\/CourseThread\/postListAction\/courseId\/13784\/id\/2595\/center\/0\">\n        <li class=\"empty\">\u52a0\u8f7d\u56de\u7b54\u4e2d\u3002\u3002\u3002<\/li>\n    <\/div>   \n    <!-- \u6b64\u4f4d\u7f6e\u663e\u793a\u5206\u9875\u901a\u7528\u4ee3\u7801 -->\n<\/div>\n\n<!-- \u5168\u90e8\u56de\u7b54 end --> \n        \n<!-- \u6211\u8981\u56de\u7b54\u8f93\u5165\u6846 -->\n<div class=\"answer-textarea-box mtl hidden\">\n            <h2>\u6211\u8981\u56de\u7b54<\/h2>\n        <div class=\"answer-textarea-con \">\n            <form id=\"thread-post-form\" class=\"form-vertical\" method=\"post\" action=\"\/Course\/CourseThread\/postAction\/center\/0\" data-url=\"\/Course\/CourseThread\/replyAction\/center\/0\" data-auto-submit=\"false\" novalidate>\n    <div class=\"form-group\">\n        <div class=\"controls\">\n            <textarea id=\"post_content\" name=\"post[content]\" class=\"form-control\" rows=\"8\" data-display=\"\u5185\u5bb9\" data-url=\"\/Course\/CourseThread\/threadContentCheckAction\" data-image-upload-url=\"\/System\/Editor\/uploadAction\/token\/MXxjb3Vyc2V8aW1hZ2V8MTc3NjEwNzIyMHw2M2E5N2Q0MDlmZjQyM2YyZTg2MGE2ODFjOGE0NjcwMQ\" style=\"visibility: hidden; display: none;\" data-widget-cid=\"widget-1\" data-explain=\"\"><\/textarea>\n        <\/div>\n    <\/div>\n    <div class=\"form-group\">\n        <div class=\"controls clearfix\">\n            <input type=\"hidden\" id=\"post_courseId\" name=\"post[courseId]\" value=\"\">\n            <input type=\"hidden\" id=\"post_threadId\" name=\"post[threadId]\" value=\"\">\n            <input type=\"hidden\" id=\"post_type\"     name=\"post[type]\" value=\"post\">\n            <input type=\"hidden\" id=\"post_role\"     name=\"post[role]\" value=\"student\">\n            <input type=\"hidden\" id=\"post_replyUId\"  name=\"post[replyUId]\" value=\"\">\n                            <button type=\"submit\" id=\"huida\" class=\"btn btn-primary pull-right post-btn\" data-loading-text=\"\u56de\u590d\u4e2d...\" >\u56de\u7b54<\/button>\n                    <\/div>\n    <\/div>\n    <input type=\"hidden\" name=\"_csrf_token\" value=\"fa9491ac1652c6a67fa5c198ec794c3630155b6e\">\n<\/form>\n        <\/div>\n    <\/div> \n\n\n<link href=\"\/Public\/assets\/libs\/ckeditor\/4.6.7\/plugins\/codesnippet\/lib\/highlight\/styles\/tomorrow.css\" rel=\"stylesheet\"\/>\n<script type=\"text\/javascript\" src=\"\/Public\/assets\/libs\/ckeditor\/4.6.7\/plugins\/codesnippet\/lib\/highlight\/highlight.pack.js\"><\/script>\n\n\n        <\/div>\n        <!-- \u95ee\u7b54\u6539\u7248\u8be6\u60c5 end -->   \n    <\/div>\n    \n    <script>\n        app.load('course\/thread-show');\n     <\/script>\n<\/div>\n<div class=\"modal fade\" id=\"buildModal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"myModalLabel\" aria-hidden=\"true\">\n<\/div>\n\n\n"}