Chapter12 웹 웹웹 & 웹 웹웹 HTML5 Programming
Chapter12 웹 워커 & 웹 소켓
Author
beata
View
170
Download
1
Embed Size (px)
344 x 292
429 x 357
514 x 422
599 x 487
DESCRIPTION
Chapter12 웹 워커 & 웹 소켓. HTML5 Programming. Contents. 1. 웹 워커. 2. 웹 소켓. 웹 워커. 스레드 하나의 프로그램 내에서의 실행 단위를 나타내는데 보통의 프로그램들은 멀티 스레드를 지원하기 때문에 하나의 프로그램에서 동시에 여러 기능이 이루어질 수 있음. 웹 워커. 웹 워커 멀티 스레드 구현이 가능 웹 브라우저에서 메인이 아닌 백그라운드로 여러 가지 처리가 가능하게 되어 복잡한 처리도 웹 브라우저에서 실행이 가능 - PowerPoint PPT Presentation
Text of Chapter12 웹 워커 & 웹 소켓
PowerPoint TemplateHTML5 Programming
&
(MultiTasking)
CPU
:
(MultiThread)
: MP3 MP3 MP3
&
UI
UI
&
. UI
postMessage() onmessage
postMessage() onmessage postMessage()
&
“” postMessage()
&
UI onmessage
&
postMessage()
“result” UI
&
UI onmessage
&
terminate()
&
06: <script type="text/javascript">
38: </body>
39: </html>
08: {
.
ShareWorker()
&
&
UI postMessage()
port
&
port UI
port onconnect
&
UI onconnect ports
UI onconnect postMessage()
&
UI onmessage
&
06: <script type="text/javascript">
14:
38: </body>
39: </html>
04:
12: {
&
WebSocket
URL http https ws wss
&
send()
send()
&
onopen onclose onmessage
&
pywebsocket (http://code.google.com/p/pywebsocket/)
PHP phpwebsocket (http://code.google.com/p/phpwebsocket/)
jWebSocket (http://jwebsocket.org/)
web-socket-ruby (https://github.com/gimite/web-socket-ruby)
Socket.IO-node (http://nodejs.org)
jWebSocket
JRE (http://www.oracle.com/technetwork/java/index.html) JRE
&
&
JWEBSOCKET_HOME
&
bin jWebSocketServer.bat
&
&
LOAD MORE