Commit 7e7af7e9 authored by Jason Stafford's avatar Jason Stafford

docs changes as suggested by mdboom

parent 89fcd32a
...@@ -101,10 +101,12 @@ var onmessage = function(e) { // eslint-disable-line no-unused-vars ...@@ -101,10 +101,12 @@ var onmessage = function(e) { // eslint-disable-line no-unused-vars
Using a web worker is advantageous because the python code is run in a separate Using a web worker is advantageous because the python code is run in a separate
thread from your main UI, and hence does not impact your application's thread from your main UI, and hence does not impact your application's
responsiveness. There are some limitations, however. Because web workers are responsiveness.
each in their own virtual machine, there is no way to share the python There are some limitations, however.
interpreter or the downloaded packages between multiple web workers or with At present, Pyodide does not support sharing the Python interpreter and
your main thread. Similarly, because of the separate VMs, you cannot share packages between multiple web workers or with your main thread.
globals between a web worker and your main thread. Finally, although the web Since web workers are each in their own virtual machine, you also cannot share
worker is separate from your main thread, the web worker is itself single globals between a web worker and your main thread.
threaded, so only one python script will execute at a time. Finally, although the web worker is separate from your main thread,
the web worker is itself single threaded, so only one python script will
execute at a time.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment