3_introducing_workers
dz / mdn / js / 3_async_javascript / 3_introducing_workersSummary
Introducing Workers
Node Tree
Nodes
workers | |
content | Workers |
children | tasks_run_seperate_thread, thread_seq_instructions, types_of_workers, no_access_to_vars, post_message |
tasks_run_seperate_thread | |
content | Enables some tasks to be run in a separate thread of execution |
children | thread_seq_instructions |
parents | workers |
thread_seq_instructions | |
content | Thread: sequence of instructions that a program follows |
parents | tasks_run_seperate_thread, workers |
no_access_to_vars | |
content | Main code and worker code never get access to eachothers variables, only share data in specific cases |
children | message_passing |
parents | workers |
message_passing | |
content | Interaction via message passing |
parents | no_access_to_vars |
types_of_workers | |
content | Types of Workers |
children | shared, dedicated |
parents | workers |
dedicated | |
content | Dedicated Workers |
children | used_single_instance (description) |
parents | types_of_workers |
shared | |
content | Shared Workers |
children | shared_by_several_different_scripts (description) |
parents | types_of_workers |
post_message | |
content | postMessage(): send message to worker |
parents | workers |
used_single_instance | |
content | Dedicated: used by single script instance |
parents | dedicated |
shared_by_several_different_scripts | |
content | Shared: shared by several different scripts running in different windows |
parents | shared |
progressive_web_apps | |
content | Progressive Web Apps |
parents | service |
service | |
content | Service: act like proxy servers, caching resources and so that web apps can work when user is offline |
children | progressive_web_apps |